GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75283c5
)
Player: Always reset special vars on respawn
author
Stas'M <x86corez@gmail.com>
Sat, 19 May 2018 21:26:52 +0000
(
00:26
+0300)
committer
Stas'M <x86corez@gmail.com>
Sat, 19 May 2018 21:28:42 +0000
(
00:28
+0300)
src/game/g_player.pas
patch
|
blob
|
history
diff --git
a/src/game/g_player.pas
b/src/game/g_player.pas
index 0522063cc24e07670a0c095dc391e2fadc56b3b8..8c64fd0423ce66f9c7717fd1353abef54bd233a9 100644
(file)
--- 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;
DEADSOFTWARE 2012-2025