X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_player.pas;h=312f186db0e7bca4cd4823bdcec36a7dd2592537;hb=67a536daf73aa6f586896b521dd4029a1068df27;hp=200435be89796d52fbc028565d55d80e0a2b6a4c;hpb=0361545117c9f1e9c4e719f2250c48f69879de4a;p=d2df-sdl.git diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 200435b..312f186 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -185,7 +185,7 @@ type FSavedStateNum: Integer; FModel: TPlayerModel; - FPunchAnim: TAnimationState; + FPunchAnim: TAnimState; FActionPrior: Byte; FActionAnim: Byte; FActionForce: Boolean; @@ -414,7 +414,7 @@ type property Berserk: Integer read FBerserk; property Pain: Integer read FPain; property Pickup: Integer read FPickup; - property PunchAnim: TAnimationState read FPunchAnim write FPunchAnim; + property PunchAnim: TAnimState read FPunchAnim write FPunchAnim; property SpawnInvul: Integer read FSpawnInvul; property Ghost: Boolean read FGhost; @@ -572,7 +572,7 @@ uses {$IFDEF ENABLE_MENU} g_menu, {$ENDIF} - {$IFNDEF HEADLESS} + {$IFDEF ENABLE_RENDER} r_render, {$ENDIF} {$IFDEF ENABLE_GFX} @@ -1644,7 +1644,7 @@ begin FNetTime := 0; FWaitForFirstSpawn := false; - FPunchAnim := TAnimationState.Create(False, 1, 4); + FPunchAnim := TAnimState.Create(False, 1, 4); FPunchAnim.Disable; resetWeaponQueue(); @@ -1799,7 +1799,7 @@ begin FJetSoundOn.Free(); FJetSoundOff.Free(); FModel.Free(); - FPunchAnim.Free(); + FPunchAnim.Invalidate; inherited; end;