diff --git a/src/game/g_console.pas b/src/game/g_console.pas
index c726ac2481f298e387ba850c72415e58554f5b7f..033f16c9a48163ffa9d2e3e08400e843d6be0edc 100644 (file)
--- a/src/game/g_console.pas
+++ b/src/game/g_console.pas
{$IFDEF ENABLE_GIBS}
g_gibs,
{$ENDIF}
+ {$IFDEF ENABLE_SHELLS}
+ g_shells,
+ {$ENDIF}
+ {$IFDEF ENABLE_CORPSES}
+ g_corpses,
+ {$ENDIF}
g_textures, 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,
{$IFDEF ENABLE_GFX}
WriteLn(f, 'g_max_particles ', g_GFX_GetMax());
{$ENDIF}
- WriteLn(f, 'g_max_shells ', g_Shells_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}
- WriteLn(f, 'g_max_corpses ', g_Corpses_GetMax());
+ {$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);