Fixed the compile.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-06-24 23:59:42 +02:00
parent 7c6be33ae0
commit a6b9e716a6
+4 -4
View File
@@ -113,14 +113,14 @@ class MapManager : public Trinity::Singleton<MapManager, Trinity::ClassLevelLock
{
// fmod only supports positive numbers. Thus we have
// to emulate negative numbers
if(o < 0)
if (o < 0)
{
float mod = o *-1;
mod = fmod(mod, 2.0f*M_PI);
mod = -mod+2.0f*M_PI;
mod = fmod(mod, 2.0f * static_cast<float>(M_PI));
mod = -mod + 2.0f * M_PI;
return mod;
}
return fmod(o, 2.0f*M_PI);
return fmod(o, 2.0f * static_cast<float>(M_PI));
}
void DoDelayedMovesAndRemoves();