1
0

Fixed double to float conversions.

This commit is contained in:
madmaxoft
2014-03-16 22:00:28 +01:00
parent 260d13c7a4
commit 89027cb675
4 changed files with 57 additions and 56 deletions

View File

@@ -219,7 +219,7 @@ bool cHopperEntity::MovePickupsIn(cChunk & a_Chunk, Int64 a_CurrentTick)
Vector3f EntityPos = a_Entity->GetPosition();
Vector3f BlockPos(m_Pos.x + 0.5f, (float)m_Pos.y + 1, m_Pos.z + 0.5f); // One block above hopper, and search from center outwards
float Distance = (EntityPos - BlockPos).Length();
double Distance = (EntityPos - BlockPos).Length();
if (Distance < 0.5)
{