aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps
diff options
context:
space:
mode:
authorteyrnon <teyronos@gmail.com>2012-08-20 10:44:14 +0200
committerShauren <shauren.trinity@gmail.com>2012-08-20 10:44:14 +0200
commit6cea446f22f5e1c52ffde23912019f8d88830a59 (patch)
tree1a7f42fc150ef383a6868653fd41f07dd930ef4c /src/server/game/Maps
parent69cfc0f7bfc927f209d326534e9ad35291f67ff0 (diff)
Core/Objects: Encapsulated Postion::m_orientation field to ensure it is always normalized to 0-2pi range
Closes #7400.
Diffstat (limited to 'src/server/game/Maps')
-rwxr-xr-xsrc/server/game/Maps/MapManager.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/server/game/Maps/MapManager.h b/src/server/game/Maps/MapManager.h
index aa07eef2204..8f5c3799161 100755
--- a/src/server/game/Maps/MapManager.h
+++ b/src/server/game/Maps/MapManager.h
@@ -104,21 +104,6 @@ class MapManager
return IsValidMapCoord(loc.GetMapId(), loc.GetPositionX(), loc.GetPositionY(), loc.GetPositionZ(), loc.GetOrientation());
}
- // modulos a radian orientation to the range of 0..2PI
- static float NormalizeOrientation(float o)
- {
- // fmod only supports positive numbers. Thus we have
- // to emulate negative numbers
- if (o < 0)
- {
- float mod = o *-1;
- mod = fmod(mod, 2.0f * static_cast<float>(M_PI));
- mod = -mod + 2.0f * static_cast<float>(M_PI);
- return mod;
- }
- return fmod(o, 2.0f * static_cast<float>(M_PI));
- }
-
void DoDelayedMovesAndRemoves();
void LoadTransports();