DEADSOFTWARE

game: disable gfx for server
[d2df-sdl.git] / src / game / g_options.pas
index 91b0a05bb755c9f87762b127ec68ffedd0cfb2e7..e825938b09beaf404853489cb01ae55497b560a7 100644 (file)
@@ -126,7 +126,10 @@ uses
   {$IFDEF USE_SDL2}
     SDL2,
   {$ENDIF}
-  e_log, e_input, g_console, g_sound, g_gfx, g_player, Math,
+  {$IFDEF ENABLE_GFX}
+    g_gfx,
+  {$ENDIF}
+  e_log, e_input, g_console, g_sound, g_player, Math,
   g_map, g_net, g_netmaster, SysUtils, CONFIG, g_game,
   g_items, wadreader, envvars;
 
@@ -278,7 +281,9 @@ begin
   end;
 
   (* section Game *)
-  g_GFX_SetMax(2000);
+  {$IFDEF ENABLE_GFX}
+    g_GFX_SetMax(2000);
+  {$ENDIF}
   g_Shells_SetMax(300);
   g_Gibs_SetMax(150);
   g_Corpses_SetMax(20);