chore(script/cleanup): Minor code clean up (#113)

This commit is contained in:
Synful-Syn
2023-05-29 12:43:05 -04:00
committed by GitHub
parent 2343495320
commit 00e1399838
5 changed files with 134 additions and 197 deletions

View File

@@ -36,7 +36,7 @@
class Player;
class AnticheatData;
enum ReportTypes
enum ReportTypes : uint8
{
SPEED_HACK_REPORT = 0,
FLY_HACK_REPORT = 1,
@@ -103,7 +103,7 @@ class AnticheatMgr
uint32 GetTotalReports(ObjectGuid guid);
float GetAverage(ObjectGuid guid);
uint32 GetTypeReports(ObjectGuid guid, uint8 type);
uint32 GetTypeReports(ObjectGuid guid, ReportTypes type);
void AnticheatGlobalCommand(ChatHandler* handler);
void AnticheatDeleteCommand(ObjectGuid guid);
@@ -129,8 +129,8 @@ class AnticheatMgr
void BGreport(Player* player);
void CheckStartPositions(Player* player);
void BGStartExploit(Player* player, MovementInfo movementInfo);
void BuildReport(Player* player,uint16 reportType);
bool MustCheckTempReports(uint8 type);
void BuildReport(Player* player, ReportTypes reportType);
bool MustCheckTempReports(ReportTypes type);
uint32 _counter = 0;
uint32 _alertFrequency = 0;
uint32 _assignedspeeddiff = 0;