From 9a839a3a98eee4a6e8c64bb5829baee3fbb0f7e3 Mon Sep 17 00:00:00 2001 From: "luksor111@gmail.com" Date: Sat, 15 Dec 2012 13:27:01 +0000 Subject: Fixed fall damage again Added sound effects to pistons git-svn-id: http://mc-server.googlecode.com/svn/trunk@1074 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Player.cpp') 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; -- cgit v1.2.3