mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7529] Hide some implementation details for fall damage calculation and breath timers.
This commit is contained in:
parent
f9a2674ce3
commit
16ab4b6849
4 changed files with 20 additions and 9 deletions
|
|
@ -459,6 +459,9 @@ Player::Player (WorldSession *session): Unit(), m_achievementMgr(this)
|
|||
|
||||
m_declinedname = NULL;
|
||||
m_runes = NULL;
|
||||
|
||||
m_lastFallTime = 0;
|
||||
m_lastFallZ = 0;
|
||||
}
|
||||
|
||||
Player::~Player ()
|
||||
|
|
@ -20210,3 +20213,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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue