mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
fix exploit where releasing only accel mid spindash would cancel it
This commit is contained in:
parent
bf09bdd642
commit
3bcf4fd33b
1 changed files with 1 additions and 1 deletions
|
|
@ -8789,7 +8789,7 @@ static void K_KartSpindash(player_t *player)
|
|||
player->spindash = 0;
|
||||
}
|
||||
|
||||
if (player->spindash > 0 && (cmd->buttons & (BT_DRIFT|BT_BRAKE)) != (BT_DRIFT|BT_BRAKE))
|
||||
if (player->spindash > 0 && (cmd->buttons & (BT_DRIFT|BT_BRAKE|BT_ACCELERATE)) != (BT_DRIFT|BT_BRAKE|BT_ACCELERATE))
|
||||
{
|
||||
player->spindashspeed = (player->spindash * FRACUNIT) / MAXCHARGETIME;
|
||||
player->spindashboost = TICRATE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue