mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-23 12:21:07 +00:00
Merge branch 'stateofwait' into 'next'
Use state function argument for SF_FASTWAIT code instead of checking mobj->state-states See merge request STJr/SRB2!2627
This commit is contained in:
commit
8d76e05f98
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ static boolean P_SetPlayerMobjState(mobj_t *mobj, statenum_t state)
|
|||
mobj->tics = st->tics;
|
||||
|
||||
// Adjust the player's animation speed
|
||||
if (mobj->state-states == S_PLAY_WAIT && (player->charflags & SF_FASTWAIT))
|
||||
if (state == S_PLAY_WAIT && (player->charflags & SF_FASTWAIT))
|
||||
mobj->tics = 5;
|
||||
else if (player->panim == PA_EDGE && (player->charflags & SF_FASTEDGE))
|
||||
mobj->tics = 2;
|
||||
|
|
Loading…
Reference in a new issue