Fix #7060: [NPF] Do not check whether ignored first tiles are end nodes.

This commit is contained in:
J0an Josep
2019-01-14 23:14:44 +01:00
committed by Charles Pigott
parent 19be1f4ace
commit aa63517c92
3 changed files with 12 additions and 7 deletions

View File

@@ -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(&current->path)) {
if (this->FoundEndNode != NULL) {
this->FoundEndNode(this, current);
}