diff options
author | matthijs <matthijs@openttd.org> | 2005-06-17 00:46:33 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2005-06-17 00:46:33 +0000 |
commit | c81de3e1e9ddfd4434afb074674c1b5a35eb00c6 (patch) | |
tree | be874245a1a8923fcac4419c7ad87033cea5a585 | |
parent | 8e535337861d419c6fc9cdd450e90689fad30e7d (diff) | |
download | openttd-c81de3e1e9ddfd4434afb074674c1b5a35eb00c6.tar.xz |
(svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected.
-rw-r--r-- | npf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -300,7 +300,7 @@ int32 NPFRailPathCost(AyStar* as, AyStarNode* current, OpenListNode* parent) { * 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; |