From d17d2cdbe55ea8bfbb73e3b865ce0620b85b2600 Mon Sep 17 00:00:00 2001 From: MDIC Date: Wed, 10 Aug 2022 14:16:20 -0400 Subject: [PATCH] update (workflow): Make work flow happy --- src/AnticheatMgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index b21a23a..f35f7ad 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -375,7 +375,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn if (player->duel) { - if ((xDiff >= 50.0f || yDiff >= 50.0f || zDiff >= 10.0f && !player->IsFlying()) && !player->CanTeleport()) + if ((xDiff >= 50.0f || yDiff >= 50.0f || (zDiff >= 10.0f && !player->IsFlying())) && !player->CanTeleport()) { Player* opponent = player->duel->Opponent; @@ -401,7 +401,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn player->SetCanTeleport(false); } - if ((xDiff >= 50.0f || yDiff >= 50.0f || zDiff >= 10.0f && !player->IsFlying()) && !player->CanTeleport()) + if ((xDiff >= 50.0f || yDiff >= 50.0f || (zDiff >= 10.0f && !player->IsFlying())) && !player->CanTeleport()) { if (m_Players[key].GetTotalReports() > sConfigMgr->GetOption("Anticheat.ReportsForIngameWarnings", 70)) {