reallow score chains from rolling

This commit is contained in:
katsy 2022-10-12 20:38:29 -05:00
parent 31a6b7b365
commit 2714ac44b4

View file

@ -8412,12 +8412,12 @@ void P_MovePlayer(player_t *player)
} }
} }
// End your chain if you're on the ground or climbing a wall. // End your chain if you're on the ground while not rolling, or climbing a wall.
// But not if invincible! Allow for some crazy long chains with it. // But not if invincible! Allow for some crazy long chains with it.
// Also keep in mind the PF_JUMPED check. // Also keep in mind the PF_JUMPED check.
// If we lacked this, stepping up while jumping up would reset score. // If we lacked this, stepping up while jumping up would reset score.
// (for instance, when climbing up off a wall.) // (for instance, when climbing up off a wall.)
if ((onground || player->climbing) && !(player->pflags & PF_JUMPED) && player->powers[pw_invulnerability] <= 1) if ((onground || player->climbing) && ((player->pflags & (PF_STARTDASH|PF_SPINNING)) != PF_SPINNING) && !(player->pflags & PF_JUMPED) && player->powers[pw_invulnerability] <= 1)
P_ResetScore(player); P_ResetScore(player);
// Show the "THOK!" graphic when spinning quickly across the ground. (even applies to non-spinners, in the case of zoom tubes) // Show the "THOK!" graphic when spinning quickly across the ground. (even applies to non-spinners, in the case of zoom tubes)