More robust check against yellow springs on grown players.

This commit is contained in:
JugadorXEI 2021-05-30 18:28:27 +02:00
parent 2c1d5a72b6
commit 4d8d5d7fa9

View file

@ -5065,8 +5065,8 @@ static void K_KartDrift(player_t *player, boolean onground)
// Grown players taking yellow spring panels will go below minspeed for one tic,
// and will then wrongdrift or have their sparks removed because of this.
// This fixes this problem.
if (player->kartstuff[k_pogospring] == 2 && player->mo->scale > FRACUNIT)
minspeed = (10<<FRACBITS);
if (player->kartstuff[k_pogospring] == 2 && player->mo->scale > mapobjectscale)
minspeed = FixedMul(10<<FRACBITS, mapobjectscale);
INT32 dsone = K_GetKartDriftSparkValue(player);
INT32 dstwo = dsone*2;