diff --git a/src/modes/three_strikes_battle.cpp b/src/modes/three_strikes_battle.cpp index c41fb715d..7218d1229 100644 --- a/src/modes/three_strikes_battle.cpp +++ b/src/modes/three_strikes_battle.cpp @@ -311,7 +311,7 @@ void ThreeStrikesBattle::raceResultOrder( int* order ) } // raceResultOrder //----------------------------------------------------------------------------- -bool ThreeStrikesBattle::acceptPowerup(const int type) const +bool ThreeStrikesBattle::acceptPowerup(const PowerupType type) const { // these powerups don't make much sense in battle mode if(type == POWERUP_PARACHUTE || type == POWERUP_ANVIL || diff --git a/src/modes/three_strikes_battle.hpp b/src/modes/three_strikes_battle.hpp index b1a51b33c..abf00d787 100644 --- a/src/modes/three_strikes_battle.hpp +++ b/src/modes/three_strikes_battle.hpp @@ -59,7 +59,7 @@ public: virtual RaceGUI::KartIconDisplayInfo* getKartsDisplayInfo(); virtual bool raceHasLaps(){ return false; } virtual void moveKartAfterRescue(Kart* kart, btRigidBody* body); - virtual bool acceptPowerup(const int type) const; + virtual bool acceptPowerup(const PowerupType type) const; virtual std::string getIdent() const; diff --git a/src/modes/world.hpp b/src/modes/world.hpp index 93d99123c..bb8f7ed8e 100644 --- a/src/modes/world.hpp +++ b/src/modes/world.hpp @@ -205,7 +205,7 @@ public: /** called when a bonus box is hit, to determine which types of powerups are allowed in each game mode. By default all are accepted, override in child classes to get a different behaviour */ - virtual bool acceptPowerup(const int type) const { return true; } + virtual bool acceptPowerup(const PowerupType type) const { return true; } /** Called by the code that draws the list of karts on the race GUI * to know what needs to be drawn in the current mode