fix: typo in function name

This commit is contained in:
jeefo 2024-03-12 09:36:32 +03:00
commit 99aac1b2ee
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 3 additions and 3 deletions

View file

@ -403,7 +403,7 @@ private:
bool isKnifeMode ();
bool isGrenadeWar ();
bool isDeadlyMove (const Vector &to);
bool isSafeToMove (const Vector &to);
bool isNotSafeToMove (const Vector &to);
bool isOutOfBombTimer ();
bool isWeaponBadAtDistance (int weaponIndex, float distance);
bool needToPauseFiring (float distance);

View file

@ -1417,7 +1417,7 @@ void Bot::attackMovement () {
const auto &side = right * m_strafeSpeed * 0.2f;
const auto &spot = pev->origin + front + side + pev->velocity * m_frameInterval;
if (isSafeToMove (spot)) {
if (isNotSafeToMove (spot)) {
m_strafeSpeed = -m_strafeSpeed;
m_moveSpeed = -m_moveSpeed;

View file

@ -2911,7 +2911,7 @@ bool Bot::isDeadlyMove (const Vector &to) {
return false;
}
bool Bot::isSafeToMove (const Vector &to) {
bool Bot::isNotSafeToMove (const Vector &to) {
// simplified version of isDeadlyMove() just for combat movement checking
constexpr auto kUnitsDown = 1000.0f;