fix(build): remove unusued variables and functions parameters

This commit is contained in:
Helias
2020-04-18 12:14:30 +02:00
parent 0cb8699e78
commit 19cd6a54d6
2 changed files with 10 additions and 11 deletions

View File

@@ -79,7 +79,6 @@ void AnticheatMgr::FlyHackDetection(Player* player, MovementInfo movementInfo)
if (!sConfigMgr->GetBoolDefault("Anticheat.DetectFlyHack", true)) if (!sConfigMgr->GetBoolDefault("Anticheat.DetectFlyHack", true))
return; return;
uint32 key = player->GetGUIDLow();
if (player->HasAuraType(SPELL_AURA_FLY) || player->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) || player->HasAuraType(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED))//overkill but wth if (player->HasAuraType(SPELL_AURA_FLY) || player->HasAuraType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED) || player->HasAuraType(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED))//overkill but wth
return; return;

View File

@@ -32,14 +32,14 @@ public:
: WorldScript("AnticheatWorldScript") : WorldScript("AnticheatWorldScript")
{ {
} }
void OnUpdate(uint32 diff) override void OnUpdate(uint32 /* diff */) override // unusued parameter
{ {
if (sWorld->GetGameTime() > resetTime) if (sWorld->GetGameTime() > resetTime)
{ {
sLog->outString( "Anticheat: Resetting daily report states."); sLog->outString( "Anticheat: Resetting daily report states.");
sAnticheatMgr->ResetDailyReportStates(); sAnticheatMgr->ResetDailyReportStates();
UpdateReportResetTime(); UpdateReportResetTime();
sLog->outString( "Anticheat: Next daily report reset: %u", resetTime); sLog->outString( "Anticheat: Next daily report reset: %ld", resetTime);
} }
if (sWorld->GetUptime() > lastIterationPlayer) if (sWorld->GetUptime() > lastIterationPlayer)
{ {
@@ -67,7 +67,7 @@ public:
} }
/* end from skeleton module */ /* end from skeleton module */
} }
void OnAfterConfigLoad(bool reload) override void OnAfterConfigLoad(bool /* reload */) override // unusued parameter
{ {
sLog->outString("AnticheatModule Loaded."); sLog->outString("AnticheatModule Loaded.");
} }