Further refactored, Reverted Minecart change

Other small changes.
This commit is contained in:
archshift
2014-04-26 09:25:30 -07:00
parent 80b97fd9dd
commit aef2c8ec62
11 changed files with 62 additions and 90 deletions
+2 -2
View File
@@ -109,12 +109,12 @@ void cAggressiveMonster::Attack(float a_Dt)
bool cAggressiveMonster::IsMovingToTargetPosition()
{
float epsilon = 0.000000000001;
//Difference between destination x and target x is negligable (to 10^-12 precision)
// Difference between destination x and target x is negligible (to 10^-12 precision)
if (fabsf((float)m_FinalDestination.x - (float)m_Target->GetPosX()) < epsilon)
{
return false;
}
//Difference between destination z and target z is negligable (to 10^-12 precision)
// Difference between destination z and target z is negligible (to 10^-12 precision)
else if (fabsf(m_FinalDestination.z - (float)m_Target->GetPosZ()) > epsilon)
{
return false;
+1 -1
View File
@@ -23,7 +23,7 @@ public:
virtual void Attack(float a_Dt);
protected:
/* Whether this mob's destination is the same as its target's position. */
/** Whether this mob's destination is the same as its target's position. */
bool IsMovingToTargetPosition();
} ;