Skip to content

Commit

Permalink
fix hit-recovery of the players
Browse files Browse the repository at this point in the history
- initialize _pVar8 for PlrDoGotHit (bugfix for 'support cast rate and walk speed modifiers')
  • Loading branch information
pionere committed Sep 24, 2024
1 parent 29696b7 commit 3e57709
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,7 @@ static void PlrStartGetHit(int pnum, int dir)
NewPlrAnim(pnum, PGX_GOTHIT, dir);

plr._pmode = PM_GOTHIT;
plr._pVar8 = 0; // GOTHIT_TICK
RemovePlrFromMap(pnum);
dPlayer[plr._px][plr._py] = pnum + 1;
FixPlayerLocation(pnum);
Expand Down

0 comments on commit 3e57709

Please sign in to comment.