diff options
author | archshift <admin@archshift.com> | 2014-04-27 00:32:14 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-04-27 00:32:14 +0200 |
commit | e2194e6e9083b54914deac3a5a6c2e3e4d262990 (patch) | |
tree | 9a8ebfcbddfae9fc68e40fad566695f0291751a3 /src/Mobs | |
parent | Merge pull request #941 from archshift/master (diff) | |
download | cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.tar cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.tar.gz cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.tar.bz2 cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.tar.lz cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.tar.xz cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.tar.zst cuberite-e2194e6e9083b54914deac3a5a6c2e3e4d262990.zip |
Diffstat (limited to 'src/Mobs')
-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) { |