summaryrefslogtreecommitdiffstats
path: root/src/Entities/FallingBlock.cpp
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/Entities/FallingBlock.cpp
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/Entities/FallingBlock.cpp')
-rw-r--r--src/Entities/FallingBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/FallingBlock.cpp b/src/Entities/FallingBlock.cpp
index f48fb156b..50140de67 100644
--- a/src/Entities/FallingBlock.cpp
+++ b/src/Entities/FallingBlock.cpp
@@ -88,7 +88,7 @@ void cFallingBlock::Tick(float a_Dt, cChunk & a_Chunk)
AddPosition(GetSpeed() * MilliDt);
//If not static (One billionth precision) broadcast movement.
- float epsilon = 0.000000001;
+ static const float epsilon = 0.000000001;
if ((fabs(GetSpeedX()) > epsilon) || (fabs(GetSpeedZ()) > epsilon))
{
BroadcastMovementUpdate();