Removed warnings when compiling on linux.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2592 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2008-12-09 22:30:30 +00:00
parent 64a609d45f
commit 36b42693e7
4 changed files with 6 additions and 5 deletions

View File

@@ -301,4 +301,5 @@ bool ThreeStrikesBattle::acceptPowerup(const int type) const
if(type == POWERUP_PARACHUTE || type == POWERUP_ANVIL || type == POWERUP_ZIPPER) return false;
return true;
}
}

View File

@@ -522,7 +522,7 @@ void DefaultRobot::handleNitro()
// (i.e. more than 2) nitro, use it.
// -------------------------------------------------
const unsigned int num_karts = race_manager->getNumKarts();
if(getPosition()== num_karts && getEnergy()>2.0f)
if(getPosition()== (int)num_karts && getEnergy()>2.0f)
{
m_controls.wheelie = true;
return;

View File

@@ -36,10 +36,10 @@ void TrackInfo::setupSteerInfo()
// direction changes from either straight to curve or the other way round.
int i = 0;
int num_drivelines = m_track->m_driveline.size();
float current_angle = m_track->m_angle[i];
// not ready yet float current_angle = m_track->m_angle[i];
while(i<num_drivelines)
{
DirectionType dir = computeDirection(i);
// not ready yetDirectionType dir = computeDirection(i);
i++;
}
} // setupSteerInfo

View File

@@ -58,4 +58,4 @@ public:
TrackInfo(const Track *track);
}; // TrackInfo
#endif
#endif