diff options
author | glx <glx@openttd.org> | 2007-05-31 21:21:04 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-05-31 21:21:04 +0000 |
commit | 6a4be9758c1da4e64810ad1b112a0e8da3882834 (patch) | |
tree | 13e87b8391261689eccead160d6496f2589872b5 /src/npf.cpp | |
parent | 4c243d099cdd06454337bbea93e0d3ce84e48d14 (diff) | |
download | openttd-6a4be9758c1da4e64810ad1b112a0e8da3882834.tar.xz |
(svn r10006) -Fix (FS#362): allow different signal types on one tile
Diffstat (limited to 'src/npf.cpp')
-rw-r--r-- | src/npf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/npf.cpp b/src/npf.cpp index a5f7ec157..10e4b6171 100644 --- a/src/npf.cpp +++ b/src/npf.cpp @@ -357,7 +357,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); + SignalType sigtype = GetSignalType(tile, TrackdirToTrack(trackdir)); if (sigtype == SIGTYPE_EXIT || sigtype == SIGTYPE_COMBO) { /* Penalise exit and combo signals differently (heavier) */ cost += _patches.npf_rail_firstred_exit_penalty; |