fix: typo in function name
This commit is contained in:
parent
6e09cee0ee
commit
99aac1b2ee
3 changed files with 3 additions and 3 deletions
|
|
@ -403,7 +403,7 @@ private:
|
||||||
bool isKnifeMode ();
|
bool isKnifeMode ();
|
||||||
bool isGrenadeWar ();
|
bool isGrenadeWar ();
|
||||||
bool isDeadlyMove (const Vector &to);
|
bool isDeadlyMove (const Vector &to);
|
||||||
bool isSafeToMove (const Vector &to);
|
bool isNotSafeToMove (const Vector &to);
|
||||||
bool isOutOfBombTimer ();
|
bool isOutOfBombTimer ();
|
||||||
bool isWeaponBadAtDistance (int weaponIndex, float distance);
|
bool isWeaponBadAtDistance (int weaponIndex, float distance);
|
||||||
bool needToPauseFiring (float distance);
|
bool needToPauseFiring (float distance);
|
||||||
|
|
|
||||||
|
|
@ -1417,7 +1417,7 @@ void Bot::attackMovement () {
|
||||||
const auto &side = right * m_strafeSpeed * 0.2f;
|
const auto &side = right * m_strafeSpeed * 0.2f;
|
||||||
const auto &spot = pev->origin + front + side + pev->velocity * m_frameInterval;
|
const auto &spot = pev->origin + front + side + pev->velocity * m_frameInterval;
|
||||||
|
|
||||||
if (isSafeToMove (spot)) {
|
if (isNotSafeToMove (spot)) {
|
||||||
m_strafeSpeed = -m_strafeSpeed;
|
m_strafeSpeed = -m_strafeSpeed;
|
||||||
m_moveSpeed = -m_moveSpeed;
|
m_moveSpeed = -m_moveSpeed;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2911,7 +2911,7 @@ bool Bot::isDeadlyMove (const Vector &to) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Bot::isSafeToMove (const Vector &to) {
|
bool Bot::isNotSafeToMove (const Vector &to) {
|
||||||
// simplified version of isDeadlyMove() just for combat movement checking
|
// simplified version of isDeadlyMove() just for combat movement checking
|
||||||
|
|
||||||
constexpr auto kUnitsDown = 1000.0f;
|
constexpr auto kUnitsDown = 1000.0f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue