mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
Clean up
More clean up recommendations by @jackpoz Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
This commit is contained in:
@@ -250,8 +250,6 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo)
|
|||||||
case 4342: //Acherus: The Ebon Hold
|
case 4342: //Acherus: The Ebon Hold
|
||||||
return;
|
return;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;// Should never happen
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((xDiff || yDiff) && m_Players[key].GetLastMovementInfo().pos.GetPositionZ() == movementInfo.pos.GetPositionZ()
|
if ((xDiff || yDiff) && m_Players[key].GetLastMovementInfo().pos.GetPositionZ() == movementInfo.pos.GetPositionZ()
|
||||||
@@ -402,6 +400,7 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
|
|||||||
// If we just check the flag, they could always add that flag and always skip the speed hacking detection.
|
// If we just check the flag, they could always add that flag and always skip the speed hacking detection.
|
||||||
|
|
||||||
if (m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_ONTRANSPORT) && player->GetMapId())
|
if (m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_ONTRANSPORT) && player->GetMapId())
|
||||||
|
{
|
||||||
switch (player->GetMapId())
|
switch (player->GetMapId())
|
||||||
{
|
{
|
||||||
case 369: //Transport: DEEPRUN TRAM
|
case 369: //Transport: DEEPRUN TRAM
|
||||||
@@ -435,8 +434,8 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
|
|||||||
case 713: //Transport: Orgrim's Hammer (IC Dungeon)
|
case 713: //Transport: Orgrim's Hammer (IC Dungeon)
|
||||||
case 718: //Transport: The Mighty Wind (Icecrown Citadel Raid)
|
case 718: //Transport: The Mighty Wind (Icecrown Citadel Raid)
|
||||||
return;
|
return;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uint32 distance2D = (uint32)movementInfo.pos.GetExactDist2d(&m_Players[key].GetLastMovementInfo().pos);
|
uint32 distance2D = (uint32)movementInfo.pos.GetExactDist2d(&m_Players[key].GetLastMovementInfo().pos);
|
||||||
uint8 moveType = 0;
|
uint8 moveType = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user