diff options
author | madmaxoft <github@xoft.cz> | 2014-03-16 22:00:28 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-16 22:00:28 +0100 |
commit | 89027cb67510f49114b9cd99c585009465a3ef66 (patch) | |
tree | 84c0b58b200e76785005b9e892ee4b2b9f63097a /src/Simulator/IncrementalRedstoneSimulator.cpp | |
parent | Added override specifier where appropriate in cWorld. (diff) | |
download | cuberite-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.cpp | 2 |
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) { |