(svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected.
--- a/npf.c Fri Jun 17 00:22:46 2005 +0000
+++ b/npf.c Fri Jun 17 00:46:33 2005 +0000
@@ -300,7 +300,7 @@
* 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;