diff options
author | megamage <none@none> | 2009-01-16 19:47:25 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-01-16 19:47:25 -0600 |
commit | 11239e9f5f9bf63e1ec07bb348b054accebd5b56 (patch) | |
tree | be27a4ac68e9a14c0ea00a4a782bfc705a4bd8aa /src | |
parent | d8b20be962fb60a56c69e8f5919b83708aa7abbd (diff) |
*Fix some bugs during merging.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/MovementHandler.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/game/MovementHandler.cpp b/src/game/MovementHandler.cpp index 9863d680117..26e54d4d64a 100644 --- a/src/game/MovementHandler.cpp +++ b/src/game/MovementHandler.cpp @@ -181,6 +181,9 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data ) uint32 opcode = recv_data.GetOpcode(); sLog.outDebug("WORLD: Recvd %s (%u, 0x%X) opcode", LookupOpcodeName(opcode), opcode, opcode); + if(GetPlayer()->GetDontMove()) + return; + /* extract packet */ MovementInfo movementInfo; ReadMovementInfo(recv_data, &movementInfo); @@ -196,20 +199,6 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data ) if (!Trinity::IsValidMapCoord(movementInfo.x, movementInfo.y, movementInfo.z, movementInfo.o)) return; - // Handle possessed unit movement separately - /*Unit* pos_unit = GetPlayer()->GetCharm(); - if (pos_unit && pos_unit->isPossessed()) // can be charmed but not possessed - { - HandlePossessedMovement(recv_data, movementInfo, movementInfo.flags); - return; - }*/ - - if (GetPlayer()->GetDontMove()) - return; - - //Save movement flags - GetPlayer()->SetUnitMovementFlags(movementInfo.flags); - /* handle special cases */ if (movementInfo.flags & MOVEMENTFLAG_ONTRANSPORT) { |