Removed some compiler warning - thanks to Jonan for the patch.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2891 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2009-01-13 01:07:12 +00:00
parent 2c0a135d94
commit 514619fd69
2 changed files with 2 additions and 3 deletions

View File

@ -53,8 +53,8 @@ public:
const std::string& getPlayerName() const { return m_user_name; }
bool operator<(const RemoteKartInfo& other) const
{
return (m_host_id<other.m_host_id ||
m_host_id==other.m_host_id && m_local_player_id<other.m_local_player_id);
return ((m_host_id<other.m_host_id) ||
(m_host_id==other.m_host_id && m_local_player_id<other.m_local_player_id));
}
}; // RemoteKartInfo

View File

@ -647,7 +647,6 @@ void DefaultRobot::handleNitroAndZipper()
}
}
const float my_dist = m_world->getDistanceDownTrackForKart(getWorldKartId());
// A kart within this distance is considered to be overtaking (or to be
// overtaken).
const float overtake_distance = 10.0f;