From 732205790baf6f1a5c353aa7665ddeb892f15039 Mon Sep 17 00:00:00 2001 From: MDIC Date: Mon, 14 Feb 2022 08:09:48 -0500 Subject: [PATCH] Revert "BG\A Adjustment and World Adjustments" This reverts commit d2f401b47d45131a9144c842b9e29b9e1f77c60b. --- src/AnticheatMgr.cpp | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index b42e172..a0b5b66 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -14,10 +14,9 @@ */ #include "AnticheatMgr.h" -#include "Configuration/Config.h" #include "MapMgr.h" #include "Player.h" -#include +#include "Configuration/Config.h" #define CLIMB_ANGLE 1.87f @@ -202,25 +201,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn float xDiff = fabs(lastX - newX); float yDiff = fabs(lastY - newY); - Map* map = player->FindMap(); - - if ((xDiff >= 50.0f || yDiff >= 50.0f) && !player->CanTeleport() && map->IsBattlegroundOrArena()) - { - if (m_Players[key].GetTotalReports() > sConfigMgr->GetOption("Anticheat.ReportsForIngameWarnings", 70)) - { - // display warning at the center of the screen, hacky way? - std::string str = ""; - str = "|cFFFFFC00[Playername:|cFF00FFFF[|cFF60FF00" + std::string(player->GetName().c_str()) + "|cFF00FFFF] Possible Teleport Hack Detected!"; - WorldPacket data(SMSG_NOTIFICATION, (str.size() + 1)); - data << str; - sWorld->SendGlobalGMMessage(&data); - } - if (sConfigMgr->GetOption("Anticheat.WriteLog", false)) - LOG_INFO("module", "AnticheatMgr:: Teleport-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString()); - - BuildReport(player, TELEPORT_HACK_REPORT); - } - if ((xDiff >= 500.0f || yDiff >= 500.0f) && !player->CanTeleport() && !map->IsBattlegroundOrArena()) + if ((xDiff >= 50.0f || yDiff >= 50.0f) && !player->CanTeleport()) { if (m_Players[key].GetTotalReports() > sConfigMgr->GetOption("Anticheat.ReportsForIngameWarnings", 70)) {