Merge branch 'ta-spindash-leniency' into 'master'

E-brake leniency in TA starts only

See merge request kart-krew-dev/ring-racers-internal!2729
This commit is contained in:
Oni VelocitOni 2025-08-12 01:24:22 +00:00
commit 18307871bf

View file

@ -4128,6 +4128,13 @@ SINT8 K_GetForwardMove(const player_t *player)
return 0; return 0;
} }
// Prevent 1-tic movment when missing same-frame E-brake shortcut trying to TA spindash
// (Movement starts the timer in TA, so this is the only context where this matters)
if (G_TimeAttackStart() && leveltime < starttime && (player->oldcmd.buttons & BT_EBRAKEMASK) == 0)
{
return 0;
}
if (player->sneakertimer || player->panelsneakertimer || player->weaksneakertimer || player->spindashboost if (player->sneakertimer || player->panelsneakertimer || player->weaksneakertimer || player->spindashboost
|| (((gametyperules & (GTR_ROLLINGSTART|GTR_CIRCUIT)) == (GTR_ROLLINGSTART|GTR_CIRCUIT)) && (leveltime < TICRATE/2))) || (((gametyperules & (GTR_ROLLINGSTART|GTR_CIRCUIT)) == (GTR_ROLLINGSTART|GTR_CIRCUIT)) && (leveltime < TICRATE/2)))
{ {