diff options
author | worktycho <work.tycho@gmail.com> | 2014-04-27 22:24:51 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-04-27 22:24:51 +0200 |
commit | c7260b2f63b85effc680008e65b1e3a026cfbff9 (patch) | |
tree | e526248d9e643c02d517de77d893c65a91c9cbae /src/Mobs/AggressiveMonster.cpp | |
parent | Update CoverityModel.cpp (diff) | |
parent | Revert "Creative players cannot throw ender pearls." (diff) | |
download | cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.tar cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.tar.gz cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.tar.bz2 cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.tar.lz cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.tar.xz cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.tar.zst cuberite-c7260b2f63b85effc680008e65b1e3a026cfbff9.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/AggressiveMonster.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp index 3e5f72dbf..4997952be 100644 --- a/src/Mobs/AggressiveMonster.cpp +++ b/src/Mobs/AggressiveMonster.cpp @@ -108,7 +108,7 @@ void cAggressiveMonster::Attack(float a_Dt) bool cAggressiveMonster::IsMovingToTargetPosition() { - float epsilon = 0.000000000001; + static const float epsilon = 0.000000000001; // Difference between destination x and target x is negligible (to 10^-12 precision) if (fabsf((float)m_FinalDestination.x - (float)m_Target->GetPosX()) < epsilon) { |