|
From: <axl...@us...> - 2010-04-25 19:42:31
|
Revision: 698
http://hgengine.svn.sourceforge.net/hgengine/?rev=698&view=rev
Author: axlecrusher
Date: 2010-04-25 19:42:25 +0000 (Sun, 25 Apr 2010)
Log Message:
-----------
use custom ABS macro
Modified Paths:
--------------
Mercury2/src/BoundingBox.cpp
Modified: Mercury2/src/BoundingBox.cpp
===================================================================
--- Mercury2/src/BoundingBox.cpp 2010-04-25 19:41:19 UTC (rev 697)
+++ Mercury2/src/BoundingBox.cpp 2010-04-25 19:42:25 UTC (rev 698)
@@ -149,7 +149,7 @@
if ( d.Length() > (ComputeRadius()+b.ComputeRadius()) ) return false; //quick circle check
MercuryVector l(m_extend+b.GetExtend());
- return l.GetX()<=abs(d.GetX()) && l.GetY()<=abs(d.GetY()) && l.GetZ()<=abs(d.GetZ());
+ return l.GetX()<=ABS(d.GetX()) && l.GetY()<=ABS(d.GetY()) && l.GetZ()<=ABS(d.GetZ());
}
bool BoundingBox::DoFrustumTest( const MercuryMatrix& m )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|