mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
fix(build): remove unusued variables and functions parameters
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user