Prevents cakes and rubber balls to appear early by replacing them by bowling balls

Signed-off-by: Fouks <42526046+Fouks0@users.noreply.github.com>
This commit is contained in:
Fouks 2018-11-27 23:57:34 +01:00
parent 88a1dcc724
commit dc9513ec8d

View File

@ -602,6 +602,13 @@ PowerupManager::PowerupType PowerupManager::getRandomPowerup(unsigned int pos,
}
else
*n=1;
// Prevents early explosive items
if (stk_config->ticks2Time(World::getWorld()->getTicksSinceStart()) < 15.)
{
if (powerup == POWERUP_CAKE || powerup == POWERUP_RUBBERBALL)
powerup = POWERUP_BOWLING;
}
return (PowerupType)powerup;
} // getRandomPowerup