From a6c68189305ad263dd29b22f0ea9a65cba876cb8 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 25 May 2013 12:00:25 +0000 Subject: Fixed WindowOwner implementation git-svn-id: http://mc-server.googlecode.com/svn/trunk@1508 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/UI/WindowOwner.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/UI/WindowOwner.h') diff --git a/source/UI/WindowOwner.h b/source/UI/WindowOwner.h index 7ad4a5739..82293b357 100644 --- a/source/UI/WindowOwner.h +++ b/source/UI/WindowOwner.h @@ -111,9 +111,9 @@ public: virtual void GetBlockPos(int & a_BlockX, int & a_BlockY, int & a_BlockZ) override { - a_BlockX = (int)(m_Entity->GetPosX()); - a_BlockY = (int)(m_Entity->GetPosY()); - a_BlockZ = (int)(m_Entity->GetPosZ()); + a_BlockX = (int)floor(m_Entity->GetPosX() + 0.5); + a_BlockY = (int)floor(m_Entity->GetPosY() + 0.5); + a_BlockZ = (int)floor(m_Entity->GetPosZ() + 0.5); } private: -- cgit v1.2.3