Fixed compilation errors on linux and several warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -46,7 +46,6 @@ void EasterEggHunt::init()
|
||||
exit(1);
|
||||
}
|
||||
|
||||
const unsigned int kart_amount = m_karts.size();
|
||||
m_eggs_collected.resize(m_karts.size(), 0);
|
||||
|
||||
} // EasterEggHunt
|
||||
@@ -72,7 +71,7 @@ void EasterEggHunt::readData(const std::string &filename)
|
||||
if(easter->getName()!="EasterEggHunt")
|
||||
{
|
||||
printf("Can't load easter egg file '%s' - no EasterEggHunt element.",
|
||||
filename);
|
||||
filename.c_str());
|
||||
delete easter;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -88,10 +88,6 @@ const std::string& StandardRace::getIdent() const
|
||||
void StandardRace::endRaceEarly()
|
||||
{
|
||||
const unsigned int kart_amount = m_karts.size();
|
||||
// Estimate time for current last in race. Will be used to add to
|
||||
// the time of the still active player karts.
|
||||
const float worst_time =
|
||||
estimateFinishTimeForKart(getKartAtPosition(getNumKarts()));
|
||||
std::vector<int> active_players;
|
||||
// Required for debugging purposes
|
||||
beginSetKartPositions();
|
||||
|
||||
@@ -489,6 +489,7 @@ public:
|
||||
case RaceManager::DIFFICULTY_EASY: return "easy"; break;
|
||||
case RaceManager::DIFFICULTY_MEDIUM: return "medium"; break;
|
||||
case RaceManager::DIFFICULTY_HARD: return "hard"; break;
|
||||
default: assert(false);
|
||||
}
|
||||
return "";
|
||||
} // getDifficultyAsString
|
||||
|
||||
Reference in New Issue
Block a user