Always set wipeoutslow when bouncing

This fixes PvP wipeout damage not getting wipeout friction
because of the order of operations: K_KartBouncing first,
then K_SpinPlayer.
This commit is contained in:
James R 2023-03-27 04:58:45 -07:00
parent 954127d533
commit 78c0926e20

View file

@ -776,9 +776,14 @@ static void K_PlayerJustBumped(player_t *player)
player->justbumped = bumptime;
player->spindash = 0;
// If spinouttimer is not set yet but could be set later,
// this lets the bump still trigger wipeout friction. If
// spinouttimer never gets set, then this has no effect on
// friction and gets unset anyway.
player->wipeoutslow = wipeoutslowtime+1;
if (player->spinouttimer)
{
player->wipeoutslow = wipeoutslowtime+1;
player->spinouttimer = max(wipeoutslowtime+1, player->spinouttimer);
//player->spinouttype = KSPIN_WIPEOUT; // Enforce type
}