Core/Movement: Add debug output to Worldsession::ReadMovementInfo to find out which movementflag restriction was violated. Please use this to give feedback.

This commit is contained in:
Machiavelli
2012-03-17 11:50:30 +01:00
parent 68ad764e2e
commit 80975faba2

View File

@@ -810,6 +810,9 @@ void WorldSession::ReadMovementInfo(WorldPacket &data, MovementInfo* mi)
//! Anti-cheat checks. Please keep them in seperate if() blocks to maintain a clear overview.
#define VIOLATE_AND_RETURN \
{ \
sLog->outDebug(LOG_FILTER_UNITS, "WorldSession::ReadMovementInfo: Violation of MovementFlags found. "
"MovementFlags: %u, MovementFlags2: %u for player GUID: %u. Player will not be relocated.",
mi->GetMovementFlags(), mi->GetExtraMovementFlags(), GetPlayer()->GetGUIDLow());
mi->Violated = true; \
return; \
} \