Core/Movement: Ensured object orientation is always within 0-2pi range, this fixes movement.

This commit is contained in:
Shauren
2012-08-10 14:10:57 +02:00
parent 5e1e9bb4dd
commit 9538fb6d5a
11 changed files with 40 additions and 27 deletions
@@ -167,6 +167,7 @@ bool GameObject::Create(uint32 guidlow, uint32 name_id, Map* map, uint32 phaseMa
ASSERT(map);
SetMap(map);
ang = MapManager::NormalizeOrientation(ang);
Relocate(x, y, z, ang);
if (!IsPositionValid())
{