DEADSOFTWARE

game: remove d_player (unused command)
[d2df-sdl.git] / src / game / g_game.pas
index d7b9b2d020e1d2a2d12e4550da90fa192526ea12..854938698fc7b37b254f7b58c4541d5a9bb3f39f 100644 (file)
@@ -312,10 +312,8 @@ var
   gRC_FullScreen, gRC_Maximized: Boolean;
   gLanguageChange: Boolean = False;
   gDebugMode: Boolean = False;
-  g_debug_WinMsgs: Boolean = False;
   g_debug_MonsterOff: Boolean = False;
   g_debug_BotAIOff: Byte = 0;
-  g_Debug_Player: Boolean = False;
   gCoopMonstersKilled: Word = 0;
   gCoopSecretsFound: Word = 0;
   gCoopTotalMonstersKilled: Word = 0;
@@ -1028,10 +1026,8 @@ end;
 
 procedure ClearDebugCvars();
 begin
-  g_debug_WinMsgs := False;
   g_debug_MonsterOff := False;
   g_debug_BotAIOff := 0;
-  g_Debug_Player := False;
 end;
 
 function g_Game_ModeToText(Mode: Byte): string;
@@ -4684,14 +4680,6 @@ begin
       g_Console_Add(Format('gScreenWidth = %d, gScreenHeight = %d', [gScreenWidth, gScreenHeight]));
       g_Console_Add(Format('gScreenWidth = %d, gScreenHeight = %d', [gScreenWidth, gScreenHeight]));
     end
-    else if cmd = 'd_winmsg' then
-    begin
-      if (Length(P) > 1) and
-         ((P[1] = '1') or (P[1] = '0')) then
-        g_Debug_WinMsgs := (P[1][1] = '1');
-
-      g_Console_Add(Format('d_winmsg is %d', [Byte(g_Debug_WinMsgs)]));
-    end
     else if (cmd = 'd_monoff') and not g_Game_IsNet then
     begin
       if (Length(P) > 1) and
@@ -4754,14 +4742,6 @@ begin
             end;
         end;
     end
-    else if (cmd = 'd_player') then
-    begin
-      if (Length(P) > 1) and
-         ((P[1] = '1') or (P[1] = '0')) then
-        g_debug_Player := (P[1][1] = '1');
-
-      g_Console_Add(Format(cmd + ' is %d', [Byte(g_Debug_Player)]));
-    end
     else if (cmd = 'd_mem') then
     begin
       PrintHeapStats();