(svn r10006) -Fix (FS#362): allow different signal types on one tile

This commit is contained in:
glx
2007-05-31 21:21:04 +00:00
parent 4af692558a
commit 2958f0c53a
9 changed files with 110 additions and 63 deletions

View File

@@ -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;