mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-17 02:40:30 +00:00
fix(): False positives against speed hacks and countermeasures (#114)
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
AnticheatData::AnticheatData()
|
||||
{
|
||||
lastOpcode = 0;
|
||||
lastSpeedRate = 0.0f;
|
||||
totalReports = 0;
|
||||
for (uint8 i = 0; i < MAX_REPORT_TYPES; i++)
|
||||
{
|
||||
@@ -34,15 +35,23 @@ AnticheatData::AnticheatData()
|
||||
tempReports[i] = 0;
|
||||
tempReportsTimer[i] = 0;
|
||||
}
|
||||
average = 0;
|
||||
average = 0.0f;
|
||||
creationTime = 0;
|
||||
hasDailyReport = false;
|
||||
justUsedMovementSpell = false;
|
||||
}
|
||||
|
||||
AnticheatData::~AnticheatData()
|
||||
{
|
||||
}
|
||||
|
||||
void AnticheatData::SetLastInformations(MovementInfo movementInfo, uint32 opcode, float speedRate)
|
||||
{
|
||||
SetLastMovementInfo(movementInfo);
|
||||
SetLastOpcode(opcode);
|
||||
SetLastSpeedRate(speedRate);
|
||||
}
|
||||
|
||||
void AnticheatData::SetDailyReportState(bool b)
|
||||
{
|
||||
hasDailyReport = b;
|
||||
|
||||
Reference in New Issue
Block a user