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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -58,4 +58,4 @@ public:
|
||||
TrackInfo(const Track *track);
|
||||
}; // TrackInfo
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user