mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't flicker drift electricity with reducevfx
This commit is contained in:
parent
eaf2e34efb
commit
3e185efa44
1 changed files with 8 additions and 5 deletions
13
src/k_kart.c
13
src/k_kart.c
|
|
@ -6797,6 +6797,14 @@ static void K_SpawnDriftSparks(player_t *player)
|
||||||
I_Assert(player->mo != NULL);
|
I_Assert(player->mo != NULL);
|
||||||
I_Assert(!P_MobjWasRemoved(player->mo));
|
I_Assert(!P_MobjWasRemoved(player->mo));
|
||||||
|
|
||||||
|
if (player->driftcharge >= dsthree)
|
||||||
|
{
|
||||||
|
if (cv_reducevfx.value || leveltime % 2 == 0)
|
||||||
|
{
|
||||||
|
K_SpawnDriftElectricity(player);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (leveltime % 2 == 1)
|
if (leveltime % 2 == 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -6927,11 +6935,6 @@ static void K_SpawnDriftSparks(player_t *player)
|
||||||
P_SetTarget(&spark->owner, player->mo);
|
P_SetTarget(&spark->owner, player->mo);
|
||||||
spark->renderflags |= RF_REDUCEVFX;
|
spark->renderflags |= RF_REDUCEVFX;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->driftcharge >= dsthree)
|
|
||||||
{
|
|
||||||
K_SpawnDriftElectricity(player);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void K_SpawnAIZDust(player_t *player)
|
static void K_SpawnAIZDust(player_t *player)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue