diff --git a/src/game/g_items.pas b/src/game/g_items.pas
index 636b682b61a97f1471a33927cc8c8c0a72574932..33ab113df1c2552399ef7712825c7d43040a9c2a 100644 (file)
--- a/src/game/g_items.pas
+++ b/src/game/g_items.pas
implementation
-uses
- Math,
- g_basic, g_sound, g_gfx, g_map,
- g_game, g_triggers, g_console, g_player, g_net, g_netmsg,
- e_log, g_options,
- g_grid, binheap, idpool, utils, xstreams;
+ uses
+ {$IFDEF ENABLE_GFX}
+ g_gfx,
+ {$ENDIF}
+ Math,
+ g_basic, g_sound, g_map,
+ g_game, g_triggers, g_console, g_player, g_net, g_netmsg,
+ e_log, g_options,
+ g_grid, binheap, idpool, utils, xstreams
+ ;
// ////////////////////////////////////////////////////////////////////////// //
var
if (RespawnTime = 0) and (not alive) then
begin
if not QuietRespawn then g_Sound_PlayExAt('SOUND_ITEM_RESPAWNITEM', InitX, InitY);
- g_GFX_QueueEffect(R_GFX_ITEM_RESPAWN, InitX + (Obj.Rect.Width div 2) - 16, InitY + (Obj.Rect.Height div 2) - 16);
+ {$IFDEF ENABLE_GFX}
+ g_GFX_QueueEffect(
+ R_GFX_ITEM_RESPAWN,
+ InitX + (Obj.Rect.Width div 2) - 16,
+ InitY + (Obj.Rect.Height div 2) - 16
+ );
+ {$ENDIF}
Obj.oldX := InitX;
Obj.oldY := InitY;
Obj.X := InitX;