1
0

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
This commit is contained in:
luksor111@gmail.com
2012-12-15 13:27:01 +00:00
parent 310c1076a7
commit 9a839a3a98
2 changed files with 3 additions and 1 deletions

View File

@@ -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;