Add backwards compat for older demos regarding ez start and bumpspark

This commit is contained in:
NepDisk 2025-09-15 11:37:29 -04:00
parent 93896b5e68
commit 24bceed8f1
2 changed files with 3 additions and 3 deletions

View file

@ -6348,7 +6348,7 @@ static void K_RaceStart(player_t *player)
player->boostcharge = player->cmd.latency;
// RA ez charge for less annoying starts.
if (modeattacking != ATTACKING_NONE)
if (modeattacking != ATTACKING_NONE && !G_CompatLevel(0x0009))
{
// Let players choose between startboost and sneaker boost by holding item.
if (player->cmd.buttons & BT_ATTACK)

View file

@ -3479,7 +3479,7 @@ static void P_BouncePlayerMove(mobj_t *mo, TryMoveResult_t *result)
mmomx = mo->player->rmomx;
mmomy = mo->player->rmomy;
if (!cv_kartbumpspark.value && modeattacking == ATTACKING_NONE)
if (!cv_kartbumpspark.value && modeattacking == ATTACKING_NONE || (modeattacking != ATTACKING_NONE && G_CompatLevel(0x0009)))
{
mo->player->drift = 0;
mo->player->driftcharge = 0;
@ -3488,7 +3488,7 @@ static void P_BouncePlayerMove(mobj_t *mo, TryMoveResult_t *result)
// Regardless of bumpspark, tell bots to stop drifting if they bonk a wall.
K_BotSetDriftState(mo->player, DRIFTSTATE_AUTO, TICRATE);
if (!cv_kartbumpspring.value && modeattacking == ATTACKING_NONE)
if (!cv_kartbumpspring.value && modeattacking == ATTACKING_NONE || (modeattacking != ATTACKING_NONE && G_CompatLevel(0x0009)))
{
mo->player->pogospring = 0;
}