DEADSOFTWARE

added hidden "goobers" console command to turn on cheats
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 22 Apr 2016 12:42:03 +0000 (15:42 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 22 Apr 2016 12:42:19 +0000 (15:42 +0300)
src/game/g_console.pas

index 8b9ef250a34b6c3fff8d245cd63acd70af04bdb0..72503f28f5695686087b8d6f5f74bb6f654e172a 100644 (file)
@@ -892,6 +892,15 @@ begin
   if Trim(L) = '' then
     Exit;
 
+  if L = 'goobers' then
+  begin
+    Line := '';
+    CPos := 1;
+    gCheats := true;
+    g_Console_Add('Your memory serves you well.');
+    exit;
+  end;
+
   if not Quiet then
   begin
     g_Console_Add('> '+L);