From 557d982b24e3b0f2859eb6ccc609653e4aa1ef09 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Tue, 20 Sep 2022 18:46:44 -0400 Subject: [PATCH] update (workflow) Make Workflow happy --- src/AnticheatMgr.cpp | 1 - src/AnticheatScripts.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 57d821d..d67fb88 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -948,7 +948,6 @@ void AnticheatMgr::BGStartExploit(Player* player, MovementInfo movementInfo) { sAnticheatMgr->BGreport(player); } - if (Battleground* bg = player->GetBattleground()) { if (bg->GetStatus() == STATUS_WAIT_JOIN) diff --git a/src/AnticheatScripts.cpp b/src/AnticheatScripts.cpp index c969369..d255414 100644 --- a/src/AnticheatScripts.cpp +++ b/src/AnticheatScripts.cpp @@ -32,7 +32,7 @@ #include "GameTime.h" Seconds resetTime = 0s; -Seconds lastIterationPlayer = GameTime::GetUptime() + Seconds(sConfigMgr->GetOption("Anticheat.SaveReportsTime", 60)); +Seconds lastIterationPlayer = GameTime::GetUptime() + 30s; //TODO: change 30 secs static to a configurable option class AnticheatPlayerScript : public PlayerScript {