summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-16 22:00:28 +0100
committermadmaxoft <github@xoft.cz>2014-03-16 22:00:28 +0100
commit89027cb67510f49114b9cd99c585009465a3ef66 (patch)
tree84c0b58b200e76785005b9e892ee4b2b9f63097a /src/Simulator/IncrementalRedstoneSimulator.cpp
parentAdded override specifier where appropriate in cWorld. (diff)
downloadcuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar
cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.gz
cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.bz2
cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.lz
cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.xz
cuberite-89027cb67510f49114b9cd99c585009465a3ef66.tar.zst
cuberite-89027cb67510f49114b9cd99c585009465a3ef66.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index ca2ef4b1a..6ace8ade9 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -1062,7 +1062,7 @@ void cIncrementalRedstoneSimulator::HandlePressurePlate(int a_BlockX, int a_Bloc
{
Vector3f EntityPos = a_Entity->GetPosition();
Vector3f BlockPos(m_X + 0.5f, (float)m_Y, m_Z + 0.5f);
- float Distance = (EntityPos - BlockPos).Length();
+ double Distance = (EntityPos - BlockPos).Length();
if (Distance <= 0.7)
{