Fixed compilation problem on linux.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5105 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-03-31 22:09:09 +00:00
parent 5d6662428d
commit dc416648cd

View File

@ -134,7 +134,7 @@ float AIBaseController::steerToPoint(const Vec3 &point)
* \param angle Angle to normalise. * \param angle Angle to normalise.
* \return Normalised angle. * \return Normalised angle.
*/ */
inline float AIBaseController::normalizeAngle(float angle) float AIBaseController::normalizeAngle(float angle)
{ {
while( angle > 2*M_PI ) angle -= 2*M_PI; while( angle > 2*M_PI ) angle -= 2*M_PI;
while( angle < -2*M_PI ) angle += 2*M_PI; while( angle < -2*M_PI ) angle += 2*M_PI;