summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-12 08:28:03 +0000
committercelestar <celestar@openttd.org>2006-04-12 08:28:03 +0000
commit62ded2f58d264835f01245798ece631033351d80 (patch)
treee8c2d2e726c1585d8c76948b78e492631a8be2c6 /npf.c
parent5ba4345b8786fceb97cbc7381609948e2e18a9c1 (diff)
downloadopenttd-62ded2f58d264835f01245798ece631033351d80.tar.xz
(svn r4376) -Codechange Renamed GetSignalState to GetSignalStateByTrackdir
Diffstat (limited to 'npf.c')
-rw-r--r--npf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/npf.c b/npf.c
index af2bb2745..f1e474c30 100644
--- a/npf.c
+++ b/npf.c
@@ -342,7 +342,7 @@ static int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* pare
/* Check for signals */
if (IsTileType(tile, MP_RAILWAY) && HasSignalOnTrackdir(tile, trackdir)) {
/* Ordinary track with signals */
- if (GetSignalState(tile, trackdir) == SIGNAL_STATE_RED) {
+ if (GetSignalStateByTrackdir(tile, trackdir) == SIGNAL_STATE_RED) {
/* Signal facing us is red */
if (!NPFGetFlag(current, NPF_FLAG_SEEN_SIGNAL)) {
/* Penalize the first signal we