X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_console.pas;h=3b2f290f6f225808c8810b7d2e16016361dd8824;hb=6d055beda222b95132d935ceeff92aad3adda831;hp=c872e8effe25e17125e80dd9d2d196cddd69fa75;hpb=5ff315211d9cab4ed4b38c339857a06611d9b0ed;p=d2df-sdl.git diff --git a/src/game/g_console.pas b/src/game/g_console.pas index c872e8e..3b2f290 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -108,7 +108,19 @@ uses {$IFDEF ENABLE_TOUCH} g_system, {$ENDIF} - g_textures, e_input, g_game, g_gfx, g_player, g_items, + {$IFDEF ENABLE_GFX} + g_gfx, + {$ENDIF} + {$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; @@ -1038,7 +1050,6 @@ begin AddCommand('d_window', DebugCommands); AddCommand('d_sounds', DebugCommands); - AddCommand('d_frames', DebugCommands); AddCommand('d_winmsg', DebugCommands); AddCommand('d_monoff', DebugCommands); AddCommand('d_botoff', DebugCommands); @@ -1613,12 +1624,6 @@ begin //SetLength(ConsoleHistory, Length(ConsoleHistory)+1); //ConsoleHistory[High(ConsoleHistory)] := L; - - (* -{$IFDEF HEADLESS} - e_WriteLog('CON: ' + L, MSG_NOTIFY); -{$ENDIF} - *) end; @@ -2084,10 +2089,18 @@ begin WriteLn(f, 'sv_public ', IfThen(NetUseMaster, 1, 0)); // game settings - WriteLn(f, 'g_max_particles ', g_GFX_GetMax()); - 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_GFX} + WriteLn(f, 'g_max_particles ', g_GFX_GetMax()); + {$ENDIF} + {$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);