Fix #7060: [NPF] Do not check whether ignored first tiles are end nodes.
This commit is contained in:

committed by
Charles Pigott

parent
19be1f4ace
commit
aa63517c92
@@ -170,7 +170,7 @@ int AyStar::Loop()
|
||||
if (current == NULL) return AYSTAR_EMPTY_OPENLIST;
|
||||
|
||||
/* Check for end node and if found, return that code */
|
||||
if (this->EndNodeCheck(this, current) == AYSTAR_FOUND_END_NODE) {
|
||||
if (this->EndNodeCheck(this, current) == AYSTAR_FOUND_END_NODE && !CheckIgnoreFirstTile(¤t->path)) {
|
||||
if (this->FoundEndNode != NULL) {
|
||||
this->FoundEndNode(this, current);
|
||||
}
|
||||
|
Reference in New Issue
Block a user