@@ -211,7 +211,7 @@ uint32 MovementAnticheat::ComputeCheatAction(std::stringstream& reason)
211211 uint32 action = CHEAT_ACTION_NONE ;
212212
213213 auto AddPenaltyForCheat = [&action, &reason, this ](bool total, CheatType cheatType, eConfigBoolValues enabledConfig, eConfigUInt32Values thresholdConfig, eConfigUInt32Values penaltyConfig)
214- {
214+ {
215215 if (sWorld .getConfig (enabledConfig))
216216 {
217217 ASSERT (cheatType < CHEATS_COUNT );
@@ -610,7 +610,7 @@ uint32 MovementAnticheat::HandlePositionTests(Player* pPlayer, MovementInfo& mov
610610 (sWorld .getConfig (CONFIG_BOOL_AC_MOVEMENT_PLAYERS_ONLY ) && (m_session->GetSecurity () != SEC_PLAYER )) ||
611611 !pPlayer->movespline ->Finalized ())
612612 return 0 ;
613-
613+
614614 if (pPlayer != me)
615615 InitNewPlayer (pPlayer);
616616
@@ -682,7 +682,7 @@ uint32 MovementAnticheat::HandlePositionTests(Player* pPlayer, MovementInfo& mov
682682 cheatFlags |= flags;
683683 }
684684
685- if (IsFallEndOpcode (opcode) ||
685+ if (IsFallEndOpcode (opcode) ||
686686 movementInfo.HasMovementFlag (MOVEFLAG_ROOT ))
687687 m_knockBack = false ;
688688
@@ -697,8 +697,8 @@ uint32 MovementAnticheat::HandlePositionTests(Player* pPlayer, MovementInfo& mov
697697 {
698698 me->m_movementInfo .moveFlags = movementInfo.moveFlags ;
699699 me->m_movementInfo .CorrectData ();
700- }
701-
700+ }
701+
702702 if (HAS_CHEAT (CHEAT_TYPE_OVERSPEED_JUMP ) &&
703703 sWorld .getConfig (CONFIG_BOOL_AC_MOVEMENT_CHEAT_OVERSPEED_JUMP_REJECT ))
704704 {
@@ -733,7 +733,7 @@ uint32 MovementAnticheat::HandleFlagTests(Player* pPlayer, MovementInfo& movemen
733733 if (!sWorld .getConfig (CONFIG_BOOL_AC_MOVEMENT_ENABLED ) ||
734734 (sWorld .getConfig (CONFIG_BOOL_AC_MOVEMENT_PLAYERS_ONLY ) && (m_session->GetSecurity () != SEC_PLAYER )))
735735 return 0 ;
736-
736+
737737 if (me != pPlayer)
738738 InitNewPlayer (pPlayer);
739739
@@ -941,7 +941,7 @@ bool MovementAnticheat::CheckFallReset(MovementInfo const& movementInfo) const
941941 if (!GetLastMovementInfo ().HasMovementFlag (MOVEFLAG_JUMPING | MOVEFLAG_FALLINGFAR ))
942942 return true ;
943943 }
944-
944+
945945 return movementInfo.fallTime != 0 || movementInfo.jump .zspeed != 0 .0f ;
946946}
947947
@@ -997,7 +997,7 @@ bool MovementAnticheat::CheckMoveStart(MovementInfo const& movementInfo, uint16
997997 !GetLastMovementInfo ().HasMovementFlag (MOVEFLAG_FORWARD ))
998998 return true ;
999999 }
1000-
1000+
10011001 if (opcode == MSG_MOVE_START_BACKWARD )
10021002 {
10031003 if (!movementInfo.HasMovementFlag (MOVEFLAG_BACKWARD ))
@@ -1065,7 +1065,7 @@ bool MovementAnticheat::CheckMoveStart(MovementInfo const& movementInfo, uint16
10651065 }
10661066 else
10671067 {
1068-
1068+
10691069 if (movementInfo.HasMovementFlag (MOVEFLAG_SWIMMING ) &&
10701070 !GetLastMovementInfo ().HasMovementFlag (MOVEFLAG_SWIMMING ) &&
10711071 !me->HasCheatOption (PLAYER_CHEAT_FLY ))
@@ -1260,7 +1260,7 @@ uint32 MovementAnticheat::CheckSpeedHack(MovementInfo const& movementInfo, uint1
12601260 (opcode == CMSG_MOVE_SPLINE_DONE ) ||
12611261 IsInKnockBack () ||
12621262 !GetLastMovementInfo ().ctime ||
1263- me->IsTaxiFlying () ||
1263+ me->IsTaxiFlying () ||
12641264 me->IsBeingTeleported ())
12651265 return 0 ;
12661266
@@ -1477,7 +1477,7 @@ void MovementAnticheat::CheckBotting(uint16 opcode, MovementInfo const& movement
14771477 // we store turns count here
14781478 m_cheatOccuranceTotal[CHEAT_TYPE_BOTTING ]++;
14791479 }
1480-
1480+
14811481 m_movementPacketsCount++;
14821482}
14831483
@@ -1500,7 +1500,7 @@ bool MovementAnticheat::CheckTeleport(MovementInfo const& movementInfo) const
15001500 float const distance2d = movementInfo.HasMovementFlag (MOVEFLAG_ONTRANSPORT ) ?
15011501 GetDistance2D (GetLastMovementInfo ().t_pos , movementInfo.t_pos ) :
15021502 GetDistance2D (GetLastMovementInfo ().pos , movementInfo.pos );
1503-
1503+
15041504 if (distance2d > 1 .0f )
15051505 return true ;
15061506
@@ -1512,7 +1512,7 @@ bool MovementAnticheat::CheckTeleport(MovementInfo const& movementInfo) const
15121512 float const distanceZ = movementInfo.HasMovementFlag (MOVEFLAG_ONTRANSPORT ) ?
15131513 std::abs (GetLastMovementInfo ().t_pos .z - movementInfo.t_pos .z ) :
15141514 std::abs (GetLastMovementInfo ().pos .z - movementInfo.pos .z );
1515-
1515+
15161516 if (distanceZ > 2 .0f )
15171517 return true ;
15181518 }
0 commit comments