mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 12:50:44 +00:00
More robust check against yellow springs on grown players.
This commit is contained in:
parent
2c1d5a72b6
commit
4d8d5d7fa9
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
// 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.
|
// and will then wrongdrift or have their sparks removed because of this.
|
||||||
// This fixes this problem.
|
// This fixes this problem.
|
||||||
if (player->kartstuff[k_pogospring] == 2 && player->mo->scale > FRACUNIT)
|
if (player->kartstuff[k_pogospring] == 2 && player->mo->scale > mapobjectscale)
|
||||||
minspeed = (10<<FRACBITS);
|
minspeed = FixedMul(10<<FRACBITS, mapobjectscale);
|
||||||
|
|
||||||
INT32 dsone = K_GetKartDriftSparkValue(player);
|
INT32 dsone = K_GetKartDriftSparkValue(player);
|
||||||
INT32 dstwo = dsone*2;
|
INT32 dstwo = dsone*2;
|
||||||
|
|
Loading…
Reference in a new issue