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:
hikerstk 2008-10-09 23:33:14 +00:00
parent 0ae024508a
commit bb84db0664
6 changed files with 6 additions and 5 deletions

View File

@ -136,6 +136,7 @@ void TimedRace::update(const float dt)
// event
terminateRace();
return;
default: break; // default for RACE_PHASE, LIMBO_PHASE
}
switch(m_mode)

View File

@ -80,7 +80,7 @@ protected:
Phase m_previous_phase;
public:
TimedRace();
~TimedRace();
virtual ~TimedRace();
void reset();

View File

@ -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;
}
}

View File

@ -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

View File

@ -90,4 +90,4 @@ public:
virtual bool raceHasLaps(){ return true; }
};
#endif
#endif

View File

@ -111,4 +111,4 @@ std::string StandardRace::getInternalCode() const
return "STD_TIMETRIAL";
else
return "STANDARD";
}
}