More robust check against yellow springs on grown players.
This commit is contained in:
1 parent
2c1d5a72b6
commit
4d8d5d7fa9
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user