Don't do wipeout dust for spectators

This commit is contained in:
TehRealSalt 2018-11-19 23:06:31 -05:00
parent 555deddb6a
commit c6053c8265

View file

@ -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)