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 | 2958f0c53a157b52f517d88623733f3fc4066fc6 (patch) | |
tree | 13e87b8391261689eccead160d6496f2589872b5 /src/npf.cpp | |
parent | 4af692558a4e78e5b5b074f68adf3c60ff89d055 (diff) | |
download | openttd-2958f0c53a157b52f517d88623733f3fc4066fc6.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; |