Merge remote-tracking branch 'fouks/prevent-early-explosive-items' into voting_gui
This commit is contained in:
commit
3292c8f0c3
@ -602,6 +602,13 @@ PowerupManager::PowerupType PowerupManager::getRandomPowerup(unsigned int pos,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
*n=1;
|
*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;
|
return (PowerupType)powerup;
|
||||||
} // getRandomPowerup
|
} // getRandomPowerup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user