mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 21:50:50 -04:00
Core/Movement: Ensured object orientation is always within 0-2pi range, this fixes movement.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user