diff options
author | matthijs <matthijs@openttd.org> | 2005-03-08 19:54:10 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-03-08 19:54:10 +0000 |
commit | 6a5495f83c431b4b12dc0e5ce4406571aa524577 (patch) | |
tree | 7d68f4e80ab28c8986de0bee20322d0bddcad0c9 /aystar.c | |
parent | b13879675fb97469e1a9aa883ef0965bfecee2e4 (diff) | |
download | openttd-6a5495f83c431b4b12dc0e5ce4406571aa524577.tar.xz |
(svn r1963) - Add: [NPF] Penalty for a red signal that is the last signal on the path.
- Add: [NPF] NPFGetFlag() and NPFSetFlag() to wrap NPF node flag handling
Diffstat (limited to 'aystar.c')
-rw-r--r-- | aystar.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ int AyStarMain_Loop(AyStar *aystar) { if (current == NULL) return AYSTAR_EMPTY_OPENLIST; // Check for end node and if found, return that code - if (aystar->EndNodeCheck(aystar, current) == AYSTAR_FOUND_END_NODE) { + if (aystar->EndNodeCheck(aystar, ¤t->path.node) == AYSTAR_FOUND_END_NODE) { if (aystar->FoundEndNode != NULL) aystar->FoundEndNode(aystar, current); free(current); |