From 6a4be9758c1da4e64810ad1b112a0e8da3882834 Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 31 May 2007 21:21:04 +0000 Subject: (svn r10006) -Fix (FS#362): allow different signal types on one tile --- src/npf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/npf.cpp') 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; -- cgit v1.2.3-54-g00ecf