mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
954127d533
commit
78c0926e20
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue