mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 12:50:44 +00:00
Fix grown players no spark/wrongdrift interaction with yellow spring panels
This commit is contained in:
parent
bf911d02cb
commit
df769a13e4
1 changed files with 7 additions and 0 deletions
|
@ -5061,6 +5061,13 @@ INT32 K_GetKartDriftSparkValue(player_t *player)
|
||||||
static void K_KartDrift(player_t *player, boolean onground)
|
static void K_KartDrift(player_t *player, boolean onground)
|
||||||
{
|
{
|
||||||
fixed_t minspeed = (10 * player->mo->scale);
|
fixed_t minspeed = (10 * player->mo->scale);
|
||||||
|
|
||||||
|
// 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 * FRACUNIT);
|
||||||
|
|
||||||
INT32 dsone = K_GetKartDriftSparkValue(player);
|
INT32 dsone = K_GetKartDriftSparkValue(player);
|
||||||
INT32 dstwo = dsone*2;
|
INT32 dstwo = dsone*2;
|
||||||
INT32 dsthree = dstwo*2;
|
INT32 dsthree = dstwo*2;
|
||||||
|
|
Loading…
Reference in a new issue