From: DeaDDooMER Date: Fri, 5 May 2023 11:45:05 +0000 (+0300) Subject: game: remove d_player (unused command) X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=b22f651016e930a521ee0f88d2cf6fec243da193;p=d2df-sdl.git game: remove d_player (unused command) --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index b73d5ad..8549386 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -314,7 +314,6 @@ var gDebugMode: 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; @@ -1029,7 +1028,6 @@ procedure ClearDebugCvars(); begin g_debug_MonsterOff := False; g_debug_BotAIOff := 0; - g_Debug_Player := False; end; function g_Game_ModeToText(Mode: Byte): string; @@ -4744,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();