Refactor merc backpack checking in FindBestPath (#162)

* remove unused fNonFenceJumper from AstarPathfinder::GetPath

* Extract backpack check into function and flip logic

Avoiding double negatives is nice
This commit is contained in:
majcosta
2023-07-28 12:07:25 -03:00
committed by GitHub
parent a0ac81aa65
commit c8c7066969
2 changed files with 6 additions and 5 deletions
-1
View File
@@ -76,7 +76,6 @@ private:
SOLDIERTYPE* pSoldier;
INT8 onRooftop;//aka ubLevel, not sure if this bool is logically reversed yet
bool fNonFenceJumper;
bool fNonSwimmer;
bool fPathingForPlayer;
bool fPathAroundPeople;