summaryrefslogtreecommitdiff
path: root/npf.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-17 06:26:37 +0000
committertron <tron@openttd.org>2006-03-17 06:26:37 +0000
commit41ee22ed999362ce5a8f9f5713207da2049145c5 (patch)
tree2070ee15ae157b6739ca7446e9e5e6bf73385c65 /npf.c
parent2232412f598d0c046dff9168467efcdee7dcbbf2 (diff)
downloadopenttd-41ee22ed999362ce5a8f9f5713207da2049145c5.tar.xz
(svn r3912) Move the signal type enum and GetSignalType() to rail_map.h; also add SetSignalType() and use the functions
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 474022a7e..96daea2c8 100644
--- a/npf.c
+++ b/npf.c
@@ -348,7 +348,7 @@ static int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* pare
* encounter, if it is red */
/* Is this a presignal exit or combo? */
- SignalType sigtype = GetSignalType(tile, TrackdirToTrack(trackdir));
+ SignalType sigtype = GetSignalType(tile);
if (sigtype == SIGTYPE_EXIT || sigtype == SIGTYPE_COMBO) {
/* Penalise exit and combo signals differently (heavier) */
cost += _patches.npf_rail_firstred_exit_penalty;