diff --git a/src/game/g_corpses.pas b/src/game/g_corpses.pas
index d4c6c5010a6e3f3cc3b5b44250e8bf6150a16c7f..b606a5ba9850a13046fa5cff7100045395261eb8 100644 (file)
--- a/src/game/g_corpses.pas
+++ b/src/game/g_corpses.pas
procedure g_Corpses_RemoveAll;
procedure g_Corpses_Update;
- {$IFNDEF HEADLESS}
+ {$IFDEF ENABLE_RENDER}
function g_Corpses_GetCameraObj (Player: TPlayer): TObj;
{$ENDIF}
{$ENDIF}
Math,
utils, g_saveload, xstreams,
- g_game, g_textures, g_map
+ g_game, g_animations, g_map
;
var
end;
procedure TCorpse.LoadState (st: TStream);
- var anim, blending: Boolean; r, g, b, alpha: Byte; stub: TAnimationState;
+ var anim, blending: Boolean; r, g, b, alpha: Byte; stub: TAnimState;
begin
assert(st <> nil);
Obj_LoadState(@FObj, st);
FPlayerUID := utils.readWord(st);
// animation
- stub := TAnimationState.Create(False, 0, 0);
+ stub := TAnimState.Create(False, 0, 0);
anim := utils.readBool(st);
if anim then
begin
// animation for mask (same as animation, compat with older saves)
anim := utils.readBool(st);
if anim then stub.LoadState(st, alpha, blending);
- stub.Free;
end;
procedure g_Corpses_SetMax (Count: Word);
SetLength(gCorpses, MaxCorpses);
end;
-{$IFNDEF HEADLESS}
+{$IFDEF ENABLE_RENDER}
function g_Corpses_GetCameraObj (Player: TPlayer): TObj;
begin
{$IFDEF ENABLE_CORPSES}