Removed unused constant, fixed compile error in switch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4933 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
d0624a7ab7
commit
5d127c878c
@ -220,18 +220,20 @@ void ChallengeData::getUnlocks(const XMLNode *root, const std:: string type,
|
||||
case UNLOCK_GP: addUnlockGPReward (attrib );
|
||||
break;
|
||||
|
||||
case UNLOCK_MODE: const RaceManager::MinorRaceModeType mode =
|
||||
case UNLOCK_MODE: {
|
||||
const RaceManager::MinorRaceModeType mode =
|
||||
RaceManager::getModeIDFromInternalName(attrib.c_str());
|
||||
addUnlockModeReward (attrib, RaceManager::getNameOf(mode));
|
||||
break;
|
||||
|
||||
}
|
||||
case UNLOCK_DIFFICULTY:
|
||||
{
|
||||
irr::core::stringw user_name = "?"; // TODO
|
||||
addUnlockDifficultyReward(attrib, user_name);
|
||||
break;
|
||||
}
|
||||
case UNLOCK_KART: const KartProperties* prop = kart_properties_manager->getKart(attrib);
|
||||
case UNLOCK_KART: {
|
||||
const KartProperties* prop = kart_properties_manager->getKart(attrib);
|
||||
if (prop == NULL)
|
||||
{
|
||||
std::cerr << "Challenge refers to kart " << attrib <<
|
||||
@ -241,6 +243,7 @@ void ChallengeData::getUnlocks(const XMLNode *root, const std:: string type,
|
||||
irr::core::stringw user_name = prop->getName();
|
||||
addUnlockKartReward(attrib, user_name);
|
||||
break;
|
||||
}
|
||||
} // switch
|
||||
} // getUnlocks
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -291,8 +291,6 @@ void OptionsScreenInput::rebuildDeviceList()
|
||||
static PlayerAction binding_to_set;
|
||||
static std::string binding_to_set_button;
|
||||
|
||||
#define MAX_VALUE 32768
|
||||
|
||||
void OptionsScreenInput::gotSensedInput(Input* sensedInput)
|
||||
{
|
||||
DynamicRibbonWidget* devices = this->getWidget<DynamicRibbonWidget>("devices");
|
||||
|
Loading…
x
Reference in New Issue
Block a user