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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user