aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-29 12:08:06 -0500
committermegamage <none@none>2009-05-29 12:08:06 -0500
commit106766e4ac01e766b3d01ab16cbb1871b4dd5fa6 (patch)
tree41b80e890e400b2fa1cbe5ba6d6c732857502878 /src/game/Object.cpp
parent21462d4895326d85f8ba8747951329e34a79c88e (diff)
*Add an assert to find a bug.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 46a824b99c7..dd6b23e458f 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1428,14 +1428,14 @@ bool WorldObject::HasInArc(const float arcangle, const WorldObject* obj) const
float angle = GetAngle( obj );
angle -= m_orientation;
- if(angle > 100 || angle < -100)
- {
- sLog.outCrash("Invalid Angle %f: this %u %u %f %f %f %f, that %u %u %f %f %f %f", angle,
- GetEntry(), GetGUIDLow(), GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation(),
- obj->GetEntry(), obj->GetGUIDLow(), obj->GetPositionX(), obj->GetPositionY(), obj->GetPositionZ(), obj->GetOrientation());
- assert(false);
- return false;
- }
+ //if(angle > 100 || angle < -100)
+ //{
+ // sLog.outCrash("Invalid Angle %f: this %u %u %f %f %f %f, that %u %u %f %f %f %f", angle,
+ // GetEntry(), GetGUIDLow(), GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation(),
+ // obj->GetEntry(), obj->GetGUIDLow(), obj->GetPositionX(), obj->GetPositionY(), obj->GetPositionZ(), obj->GetOrientation());
+ // assert(false);
+ // return false;
+ //}
// move angle to range -pi ... +pi
while( angle > M_PI)