mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[8782] Prevent packet problem spam in log at rejected CMSG_WORLD_TELEPORT.
This commit is contained in:
parent
4d2f4726fd
commit
150ac4c76e
2 changed files with 10 additions and 9 deletions
|
|
@ -1181,14 +1181,6 @@ void WorldSession::HandleWorldTeleportOpcode(WorldPacket& recv_data)
|
||||||
// Received opcode CMSG_WORLD_TELEPORT
|
// Received opcode CMSG_WORLD_TELEPORT
|
||||||
// Time is ***, map=469, x=452.000000, y=6454.000000, z=2536.000000, orient=3.141593
|
// 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 time;
|
||||||
uint32 mapid;
|
uint32 mapid;
|
||||||
float PositionX;
|
float PositionX;
|
||||||
|
|
@ -1202,6 +1194,15 @@ void WorldSession::HandleWorldTeleportOpcode(WorldPacket& recv_data)
|
||||||
recv_data >> PositionY;
|
recv_data >> PositionY;
|
||||||
recv_data >> PositionZ;
|
recv_data >> PositionZ;
|
||||||
recv_data >> Orientation; // o (3.141593 = 180 degrees)
|
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);
|
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)
|
if (GetSecurity() >= SEC_ADMINISTRATOR)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8781"
|
#define REVISION_NR "8782"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue