From: Stas'M Date: Sat, 19 May 2018 21:26:52 +0000 (+0300) Subject: Player: Always reset special vars on respawn X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=37c826b3dfdfbdc0f44c0a4fe21354e85547be8f;p=d2df-sdl.git Player: Always reset special vars on respawn --- diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 0522063..8c64fd0 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -4342,6 +4342,12 @@ var Anim: TAnimation; ID: DWORD; begin + FIncCam := 0; + FBFGFireCounter := -1; + FShellTimer := -1; + FPain := 0; + FLastHit := 0; + if not g_Game_IsServer then Exit; if FDummy then @@ -4446,12 +4452,6 @@ begin else FAngle := 0; - FIncCam := 0; - FBFGFireCounter := -1; - FShellTimer := -1; - FPain := 0; - FLastHit := 0; - SetAction(A_STAND, True); FModel.Direction := FDirection;