Fix spindashing on a moving surface causing you to change state to rolling instead of spindashing.
(MI said I could commit to master since it was only a single line.)
This commit is contained in:
parent
b06af59907
commit
3add792986
|
@ -2204,7 +2204,7 @@ boolean P_PlayerHitFloor(player_t *player, boolean dorollstuff)
|
||||||
|
|
||||||
if (player->pflags & PF_SPINNING)
|
if (player->pflags & PF_SPINNING)
|
||||||
{
|
{
|
||||||
if (player->mo->state-states != S_PLAY_ROLL)
|
if (player->mo->state-states != S_PLAY_ROLL && !(player->pflags & PF_STARTDASH))
|
||||||
{
|
{
|
||||||
P_SetPlayerMobjState(player->mo, S_PLAY_ROLL);
|
P_SetPlayerMobjState(player->mo, S_PLAY_ROLL);
|
||||||
S_StartSound(player->mo, sfx_spin);
|
S_StartSound(player->mo, sfx_spin);
|
||||||
|
|
Loading…
Reference in New Issue