mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-12 22:02:12 +00:00
Fixing SF_NOSUPERSPIN, which has been broken ever since the super walk animation was added.
This commit is contained in:
parent
698e53a518
commit
302305ccf5
1 changed files with 8 additions and 3 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
@ -408,10 +408,15 @@ boolean P_SetPlayerMobjState(mobj_t *mobj, statenum_t state)
|
|||
return P_SetPlayerMobjState(player->mo, S_PLAY_FLY);
|
||||
|
||||
// Catch SF_NOSUPERSPIN jumps for Supers
|
||||
if (player->powers[pw_super])
|
||||
if (player->powers[pw_super] && (player->charflags & SF_NOSUPERSPIN))
|
||||
{
|
||||
if ((player->charflags & SF_NOSUPERSPIN)
|
||||
&& (state == S_PLAY_ROLL || state == S_PLAY_JUMP))
|
||||
if (state == S_PLAY_JUMP)
|
||||
{
|
||||
if (player->mo->state-states == S_PLAY_WALK)
|
||||
return P_SetPlayerMobjState(mobj, S_PLAY_FLOAT);
|
||||
return true;
|
||||
}
|
||||
else if (player->mo->state-states == S_PLAY_FLOAT && state == S_PLAY_STND)
|
||||
return true;
|
||||
}
|
||||
// You were in pain state after taking a hit, and you're moving out of pain state now?
|
||||
|
|
Loading…
Reference in a new issue