combat: only move back if there's no wall behind the bot

This commit is contained in:
jeefo 2024-06-01 13:52:04 +03:00
commit 587064e897
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 25 additions and 5 deletions

View file

@ -400,6 +400,7 @@ private:
bool isBlockedRight ();
bool checkWallOnLeft ();
bool checkWallOnRight ();
bool checkWallOnBehind ();
bool updateNavigation ();
bool isEnemyThreat ();
bool isWeaponRestricted (int wid);