mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Improve autowalk
This commit is contained in:
@@ -611,8 +611,8 @@ std::tuple<std::vector<Otc::Direction>, Otc::PathFindResult> Map::findPath(const
|
||||
tiles, need to rework this for "fly servers" and blank map click,
|
||||
but it is breaking normal path finding.
|
||||
*/
|
||||
if(!(flags & Otc::PathFindAllowNullTiles) && !tile)
|
||||
walkFactor = 3.0f;
|
||||
if(!(flags & Otc::PathFindAllowNullTiles) && (!tile || tile->isEmpty()))
|
||||
continue;
|
||||
if(tile) {
|
||||
if(!(flags & Otc::PathFindAllowCreatures) && tile->hasCreature())
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user