From 4d008f2043084b72fb9d4a9929ff2793c7bbd8ee Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 4 Feb 2009 10:33:18 -0600 Subject: Replace tabs with spaces, and fix crlf issues --HG-- branch : trunk --- src/game/MovementHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/MovementHandler.cpp') diff --git a/src/game/MovementHandler.cpp b/src/game/MovementHandler.cpp index 0a310cddd96..8c808e3a53a 100644 --- a/src/game/MovementHandler.cpp +++ b/src/game/MovementHandler.cpp @@ -365,7 +365,7 @@ void WorldSession::HandlePossessedMovement(WorldPacket& recv_data, MovementInfo& if (pos_unit->GetTypeId() == TYPEID_PLAYER) { Player* plr = (Player*)pos_unit; - + if (recv_data.GetOpcode() == MSG_MOVE_FALL_LAND) plr->HandleFallDamage(movementInfo); @@ -374,7 +374,7 @@ void WorldSession::HandlePossessedMovement(WorldPacket& recv_data, MovementInfo& // Now client not include swimming flag in case jumping under water plr->SetInWater( !plr->IsInWater() || plr->GetBaseMap()->IsUnderWater(movementInfo.x, movementInfo.y, movementInfo.z) ); } - + plr->SetPosition(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o, false); plr->m_movementInfo = movementInfo; @@ -386,7 +386,7 @@ void WorldSession::HandlePossessedMovement(WorldPacket& recv_data, MovementInfo& GetPlayer()->RemovePossess(false); plr->HandleFallUnderMap(); } - } + } else // Possessed unit is a creature { Map* map = MapManager::Instance().GetMap(pos_unit->GetMapId(), pos_unit); -- cgit v1.2.3