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:
parent
5d6662428d
commit
dc416648cd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user