Disable swapper powerup in battle mode

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-02-24 01:57:25 +00:00
parent b656321ba6
commit 6ef1b804a5

View File

@ -314,9 +314,12 @@ void ThreeStrikesBattle::raceResultOrder( int* order )
bool ThreeStrikesBattle::acceptPowerup(const PowerupType type) const
{
// these powerups don't make much sense in battle mode
if(type == POWERUP_PARACHUTE || type == POWERUP_ANVIL ||
type == POWERUP_BUBBLEGUM || type == POWERUP_ZIPPER)
if (type == POWERUP_PARACHUTE || type == POWERUP_ANVIL ||
type == POWERUP_BUBBLEGUM || type == POWERUP_ZIPPER ||
type == POWERUP_SWITCH)
{
return false;
}
return true;
} // acceptPowerup