From: Ketmar Dark Date: Mon, 21 Aug 2017 12:47:28 +0000 (+0300) Subject: "mon_sq_enabled" console command X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=77620b19e88e8eb4884be54475632754d8a4014e;p=d2df-sdl.git "mon_sq_enabled" console command --- diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 729bf95..0db51cf 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -401,6 +401,8 @@ begin AddCommand('sq_use_grid', ProfilerCommands); AddCommand('sq_use_tree', ProfilerCommands); + AddCommand('mon_sq_enabled', ProfilerCommands); + AddCommand('p1_name', GameCVars); AddCommand('p2_name', GameCVars); AddCommand('p1_color', GameCVars); diff --git a/src/game/g_game.pas b/src/game/g_game.pas index ad2a0f7..9edbcf0 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -4995,6 +4995,17 @@ begin if gdbg_map_dump_coldet_tree_queries then g_Console_Add('grid coldet tree queries: tan') else g_Console_Add('grid coldet tree queries: ona'); exit; end; + + if (cmd = 'mon_sq_enabled') then + begin + case getBool(1) of + -1: begin end; + 0: gmon_debug_use_sqaccel := false; + 1: gmon_debug_use_sqaccel := true; + end; + if gmon_debug_use_sqaccel then g_Console_Add('accelerated monster coldet: tan') else g_Console_Add('accelerated monster coldet: ona'); + exit; + end; end; procedure DebugCommands(P: SArray);