mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-17 10:45:45 +00:00
tracks last map id (#123)
This commit is contained in:
@@ -45,10 +45,11 @@ AnticheatData::~AnticheatData()
|
||||
{
|
||||
}
|
||||
|
||||
void AnticheatData::SetLastInformations(MovementInfo movementInfo, uint32 opcode, float speedRate)
|
||||
void AnticheatData::SetLastInformations(MovementInfo movementInfo, uint32 opcode, uint32 mapId, float speedRate)
|
||||
{
|
||||
SetLastMovementInfo(movementInfo);
|
||||
SetLastOpcode(opcode);
|
||||
SetLastMapId(mapId);
|
||||
SetLastSpeedRate(speedRate);
|
||||
}
|
||||
|
||||
@@ -67,9 +68,10 @@ void AnticheatData::SetLastOpcode(uint32 opcode)
|
||||
lastOpcode = opcode;
|
||||
}
|
||||
|
||||
void AnticheatData::SetPosition(float x, float y, float z, float o)
|
||||
void AnticheatData::SetPosition(float x, float y, float z, float o, uint32 mapId)
|
||||
{
|
||||
lastMovementInfo.pos = { x, y, z, o };
|
||||
SetLastMapId(mapId);
|
||||
}
|
||||
|
||||
uint32 AnticheatData::GetLastOpcode() const
|
||||
|
||||
Reference in New Issue
Block a user