From 150ac4c76efefc92c4a634ebdc3b1e1d64906d85 Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 7 Nov 2009 18:43:25 +0300 Subject: [PATCH] [8782] Prevent packet problem spam in log at rejected CMSG_WORLD_TELEPORT. --- src/game/MiscHandler.cpp | 17 +++++++++-------- src/shared/revision_nr.h | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index 4ecd7ee59..75b669654 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -1181,14 +1181,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; @@ -1202,6 +1194,15 @@ 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) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index f765e1f7a..b1b23a291 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8781" + #define REVISION_NR "8782" #endif // __REVISION_NR_H__