summaryrefslogtreecommitdiffstats
path: root/source/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index 31dc001ca..555b8d3f9 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -291,7 +291,7 @@ void cPlayer::SetTouchGround(bool a_bTouchGround)
if (m_bTouchGround)
{
- float Dist = (float)(m_LastGroundHeight - m_Pos.y);
+ float Dist = (float)(m_LastGroundHeight - floor(m_Pos.y));
int Damage = (int)(Dist - 3.f);
if(m_LastJumpHeight > m_LastGroundHeight) Damage++;
m_LastJumpHeight = (float)m_Pos.y;