[7373] Implement expansion check at character loading (for homebind, transport and plain coordinates). Author: VladimirMangos

Also move fall damage calucaltion in new function.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-02 17:15:25 -06:00
parent 55dffa8409
commit 0cfc452093
4 changed files with 75 additions and 52 deletions

View File

@@ -233,7 +233,7 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
// fall damage generation (ignore in flight case that can be triggered also at lags in moment teleportation to another map).
if (opcode == MSG_MOVE_FALL_LAND && !GetPlayer()->isInFlight())
GetPlayer()->HandleFallDamage(movementInfo);
GetPlayer()->HandleFall(movementInfo);
if(((movementInfo.flags & MOVEMENTFLAG_SWIMMING) != 0) != GetPlayer()->IsInWater())
{