[7529] Hide some implementation details for fall damage calculation and breath timers. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-24 09:46:45 -06:00
parent cd66e85ed1
commit 208398017a
3 changed files with 19 additions and 8 deletions
+9
View File
@@ -468,6 +468,9 @@ Player::Player (WorldSession *session): Unit(), m_achievementMgr(this)
m_farsightVision = false;
m_runes = NULL;
m_lastFallTime = 0;
m_lastFallZ = 0;
}
Player::~Player ()
@@ -20948,3 +20951,9 @@ void Player::UpdateKnownCurrencies(uint32 itemId, bool apply)
RemoveFlag64(PLAYER_FIELD_KNOWN_CURRENCIES,(1LL << (ctEntry->BitIndex-1)));
}
}
void Player::UpdateFallInformationIfNeed( MovementInfo const& minfo,uint16 opcode )
{
if (m_lastFallTime >= minfo.fallTime || m_lastFallZ <=minfo.z || opcode == MSG_MOVE_FALL_LAND)
SetFallInformation(minfo.fallTime, minfo.z);
}