diff options
author | n0n4m3 <none@none> | 2009-12-19 18:54:46 +0100 |
---|---|---|
committer | n0n4m3 <none@none> | 2009-12-19 18:54:46 +0100 |
commit | c99065e58c421962bd30a6a4f07a8aa14f6d44e2 (patch) | |
tree | 0639cccd5f1b6ae46f1be5446121a02a6f652821 /src/game/MiscHandler.cpp | |
parent | 1f9530af217c32fbb60f2d75ef388aa8888381b5 (diff) |
Prevent packet problem spam in log at rejected CMSG_WORLD_TELEPORT. by VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/MiscHandler.cpp')
-rw-r--r-- | src/game/MiscHandler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index 85e1a497a25..1e1c44e3d97 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -1227,14 +1227,6 @@ void WorldSession::HandleWorldTeleportOpcode(WorldPacket& recv_data) // Received opcode CMSG_WORLD_TELEPORT // Time is ***, map=469, x=452.000000, y=6454.000000, z=2536.000000, orient=3.141593 - //sLog.outDebug("Received opcode CMSG_WORLD_TELEPORT"); - - if(GetPlayer()->isInFlight()) - { - sLog.outDebug("Player '%s' (GUID: %u) in flight, ignore worldport command.",GetPlayer()->GetName(),GetPlayer()->GetGUIDLow()); - return; - } - uint32 time; uint32 mapid; float PositionX; @@ -1248,6 +1240,14 @@ void WorldSession::HandleWorldTeleportOpcode(WorldPacket& recv_data) recv_data >> PositionY; recv_data >> PositionZ; recv_data >> Orientation; // o (3.141593 = 180 degrees) + + //sLog.outDebug("Received opcode CMSG_WORLD_TELEPORT"); + if(GetPlayer()->isInFlight()) + { + sLog.outDebug("Player '%s' (GUID: %u) in flight, ignore worldport command.",GetPlayer()->GetName(),GetPlayer()->GetGUIDLow()); + return; + } + DEBUG_LOG("Time %u sec, map=%u, x=%f, y=%f, z=%f, orient=%f", time/1000, mapid, PositionX, PositionY, PositionZ, Orientation); if (GetSecurity() >= SEC_ADMINISTRATOR) |