mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
Don't do wipeout dust for spectators
This commit is contained in:
parent
555deddb6a
commit
c6053c8265
1 changed files with 4 additions and 1 deletions
|
@ -1626,7 +1626,10 @@ static void K_GetKartBoostPower(player_t *player)
|
||||||
boostpower = 4*boostpower/5;
|
boostpower = 4*boostpower/5;
|
||||||
|
|
||||||
// Banana drag/offroad dust
|
// Banana drag/offroad dust
|
||||||
if (boostpower < FRACUNIT && player->mo && P_IsObjectOnGround(player->mo) && player->speed > 0)
|
if (boostpower < FRACUNIT
|
||||||
|
&& player->mo && P_IsObjectOnGround(player->mo)
|
||||||
|
&& player->speed > 0
|
||||||
|
&& !player->spectator)
|
||||||
{
|
{
|
||||||
K_SpawnWipeoutTrail(player->mo, true);
|
K_SpawnWipeoutTrail(player->mo, true);
|
||||||
if (leveltime % 6 == 0)
|
if (leveltime % 6 == 0)
|
||||||
|
|
Loading…
Reference in a new issue