Removed minor compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2330 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0ae024508a
commit
bb84db0664
@ -136,6 +136,7 @@ void TimedRace::update(const float dt)
|
||||
// event
|
||||
terminateRace();
|
||||
return;
|
||||
default: break; // default for RACE_PHASE, LIMBO_PHASE
|
||||
}
|
||||
|
||||
switch(m_mode)
|
||||
|
@ -80,7 +80,7 @@ protected:
|
||||
Phase m_previous_phase;
|
||||
public:
|
||||
TimedRace();
|
||||
~TimedRace();
|
||||
virtual ~TimedRace();
|
||||
|
||||
void reset();
|
||||
|
||||
|
@ -133,4 +133,4 @@ KartIconDisplayInfo* FollowTheLeaderRace::getKartsDisplayInfo(const RaceGUI* cal
|
||||
LinearWorld::getKartsDisplayInfo(caller);
|
||||
m_kart_display_info[0].special_title = _("Leader");
|
||||
return m_kart_display_info;
|
||||
}
|
||||
}
|
||||
|
@ -501,7 +501,7 @@ void LinearWorld::updateRacePosition ( Kart* kart, KartInfo& kart_info )
|
||||
const unsigned int kart_amount = m_kart.size();
|
||||
for ( unsigned int j = 0 ; j < kart_amount ; j++ )
|
||||
{
|
||||
if(int(j) == kart->getWorldKartId()) continue; // don't compare a kart with itself
|
||||
if(j == kart->getWorldKartId()) continue; // don't compare a kart with itself
|
||||
if(m_kart[j]->isEliminated()) continue; // dismiss eliminated karts
|
||||
|
||||
// Count karts ahead of the current kart, i.e. kart that are already
|
||||
|
@ -90,4 +90,4 @@ public:
|
||||
virtual bool raceHasLaps(){ return true; }
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -111,4 +111,4 @@ std::string StandardRace::getInternalCode() const
|
||||
return "STD_TIMETRIAL";
|
||||
else
|
||||
return "STANDARD";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user