summaryrefslogtreecommitdiffstats
path: root/src/Entities/FallingBlock.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-27 18:35:41 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-04-27 18:35:41 +0200
commitbbc5faa723b7dd63250949f7b28601ffd748e2f5 (patch)
treee74901e581237b889cd8d7ccfaaf376f8b616508 /src/Entities/FallingBlock.cpp
parentMerge pull request #941 from archshift/master (diff)
downloadcuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.tar
cuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.tar.gz
cuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.tar.bz2
cuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.tar.lz
cuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.tar.xz
cuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.tar.zst
cuberite-bbc5faa723b7dd63250949f7b28601ffd748e2f5.zip
Diffstat (limited to 'src/Entities/FallingBlock.cpp')
-rw-r--r--src/Entities/FallingBlock.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Entities/FallingBlock.cpp b/src/Entities/FallingBlock.cpp
index bcdac0291..86720ac94 100644
--- a/src/Entities/FallingBlock.cpp
+++ b/src/Entities/FallingBlock.cpp
@@ -88,8 +88,7 @@ void cFallingBlock::Tick(float a_Dt, cChunk & a_Chunk)
AddPosition(GetSpeed() * MilliDt);
// If not static (One billionth precision) broadcast movement.
- static const float epsilon = 0.000000001;
- if ((fabs(GetSpeedX()) > epsilon) || (fabs(GetSpeedZ()) > epsilon))
+ if ((fabs(GetSpeedX()) > std::numeric_limits<double>::epsilon()) || (fabs(GetSpeedZ()) > std::numeric_limits<double>::epsilon()))
{
BroadcastMovementUpdate();
}