diff options
author | megamage <none@none> | 2009-05-29 12:08:06 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-29 12:08:06 -0500 |
commit | 106766e4ac01e766b3d01ab16cbb1871b4dd5fa6 (patch) | |
tree | 41b80e890e400b2fa1cbe5ba6d6c732857502878 /src/game/Object.h | |
parent | 21462d4895326d85f8ba8747951329e34a79c88e (diff) |
*Add an assert to find a bug.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r-- | src/game/Object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index b8dde77ae57..098cb0893aa 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -383,6 +383,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object void Relocate(float x, float y, float z, float orientation) { + assert(orientation > -100 && orientation < 100); m_positionX = x; m_positionY = y; m_positionZ = z; @@ -402,7 +403,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object Relocate(loc.x, loc.y, loc.z, loc.o); } - void SetOrientation(float orientation) { m_orientation = orientation; } + void SetOrientation(float orientation) { assert(orientation > -100 && orientation < 100); m_orientation = orientation; } float GetPositionX( ) const { return m_positionX; } float GetPositionY( ) const { return m_positionY; } |