mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Fix #250
This commit is contained in:
@@ -635,6 +635,13 @@ std::tuple<std::vector<Otc::Direction>, Otc::PathFindResult> Map::findPath(const
|
||||
if(!(flags & Otc::PathFindAllowNonWalkable) && isNotWalkable)
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if(!(flags & Otc::PathFindAllowNotSeenTiles) && !wasSeen)
|
||||
continue;
|
||||
if(wasSeen) {
|
||||
if(!(flags & Otc::PathFindAllowNonWalkable) && isNotWalkable)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Otc::Direction walkDir = currentNode->pos.getDirectionFromPosition(neighborPos);
|
||||
|
||||
Reference in New Issue
Block a user