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:
toaster 2019-08-04 19:11:58 +01:00
parent b06af59907
commit 3add792986
1 changed files with 1 additions and 1 deletions

View File

@ -2204,7 +2204,7 @@ boolean P_PlayerHitFloor(player_t *player, boolean dorollstuff)
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);
S_StartSound(player->mo, sfx_spin);