X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=2e3b6838e6f0bf7d51f8e1e863e49d5340031bb6;hb=a2ba3b4f4ea42350560a7670f3be97a55f6d3ab5;hp=7937a19954768c0cb7029f5cfceaa91fd7296c2e;hpb=6cdd36d2fb73f13be7b6ea1870a8b3b0817b37f1;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 7937a19..2e3b683 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -111,7 +111,16 @@ uses {$IFDEF ENABLE_GFX} g_gfx, {$ENDIF} - g_textures, e_input, g_game, g_player, g_items, + {$IFDEF ENABLE_GIBS} + g_gibs, + {$ENDIF} + {$IFDEF ENABLE_SHELLS} + g_shells, + {$ENDIF} + {$IFDEF ENABLE_CORPSES} + g_corpses, + {$ENDIF} + e_input, g_game, g_player, g_items, SysUtils, g_basic, g_options, Math, e_res, g_language, g_net, g_netmsg, e_log, conbuf, g_weapons, Keyboard; @@ -1040,13 +1049,10 @@ begin AddCommand('version', ConsoleCommands); AddCommand('d_window', DebugCommands); - AddCommand('d_sounds', DebugCommands); - AddCommand('d_frames', DebugCommands); AddCommand('d_winmsg', DebugCommands); AddCommand('d_monoff', DebugCommands); AddCommand('d_botoff', DebugCommands); AddCommand('d_monster', DebugCommands); - AddCommand('d_health', DebugCommands); AddCommand('d_player', DebugCommands); AddCommand('d_joy', DebugCommands); AddCommand('d_mem', DebugCommands); @@ -1616,12 +1622,6 @@ begin //SetLength(ConsoleHistory, Length(ConsoleHistory)+1); //ConsoleHistory[High(ConsoleHistory)] := L; - - (* -{$IFDEF HEADLESS} - e_WriteLog('CON: ' + L, MSG_NOTIFY); -{$ENDIF} - *) end; @@ -2090,9 +2090,15 @@ begin {$IFDEF ENABLE_GFX} WriteLn(f, 'g_max_particles ', g_GFX_GetMax()); {$ENDIF} - WriteLn(f, 'g_max_shells ', g_Shells_GetMax()); - WriteLn(f, 'g_max_gibs ', g_Gibs_GetMax()); - WriteLn(f, 'g_max_corpses ', g_Corpses_GetMax()); + {$IFDEF ENABLE_SHELLS} + WriteLn(f, 'g_max_shells ', g_Shells_GetMax()); + {$ENDIF} + {$IFDEF ENABLE_GIBS} + WriteLn(f, 'g_max_gibs ', g_Gibs_GetMax()); + {$ENDIF} + {$IFDEF ENABLE_CORPSES} + WriteLn(f, 'g_max_corpses ', g_Corpses_GetMax()); + {$ENDIF} WriteLn(f, 'g_force_model ', g_Force_Model_Get()); WriteLn(f, 'g_force_model_name ', g_Forced_Model_GetName()); WriteLn(f, 'sv_intertime ', gDefInterTime);