Changeset - r1945:ed78507998a4
[Not reviewed]
master
0 1 0
matthijs - 19 years ago 2005-06-17 00:46:33
matthijs@openttd.org
(svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected.
1 file changed with 1 insertions and 1 deletions:
npf.c
1
1
0 comments (0 inline, 0 general)
npf.c
Show inline comments
 
@@ -300,7 +300,7 @@ int32 NPFRailPathCost(AyStar* as, AyStar
 
				 * encounter, if it is red */
 

	
 
				/* Is this a presignal exit or combo? */
 
				SignalType sigtype = GetSignalType(tile, trackdir);
 
				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;
0 comments (0 inline, 0 general)