E-brake leniency in TA starts only

This commit is contained in:
Antonio Martinez 2025-08-10 19:47:09 -04:00
parent c7b3a49c85
commit da6b6abb03

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)))
{ {