summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-26 18:21:49 +0200
committerarchshift <admin@archshift.com>2014-04-26 18:25:30 +0200
commitaef2c8ec628aa2522364da1333bc5158e55ac6a2 (patch)
treeda83f950fb33b4910d006499930b98fb231e2fd7 /src/Mobs
parentFixed mobs that don't naturally spawn. (diff)
downloadcuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar
cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.gz
cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.bz2
cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.lz
cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.xz
cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.tar.zst
cuberite-aef2c8ec628aa2522364da1333bc5158e55ac6a2.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/AggressiveMonster.cpp4
-rw-r--r--src/Mobs/AggressiveMonster.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp
index cafa7ee74..3e5f72dbf 100644
--- a/src/Mobs/AggressiveMonster.cpp
+++ b/src/Mobs/AggressiveMonster.cpp
@@ -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;
diff --git a/src/Mobs/AggressiveMonster.h b/src/Mobs/AggressiveMonster.h
index c66452360..d70ff04a3 100644
--- a/src/Mobs/AggressiveMonster.h
+++ b/src/Mobs/AggressiveMonster.h
@@ -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();
} ;