Mercurial > hg > openttd
changeset 1945:4bbbd728f0d4 draft
(svn r2451) * Fix: Assertion caused by passing a trackdir where a track was expected.
author | matthijs <matthijs@openttd.org> |
---|---|
date | Fri, 17 Jun 2005 00:46:33 +0000 |
parents | 5a6063fd27e5 |
children | 235eb7ff07b0 |
files | npf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/npf.c +++ b/npf.c @@ -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;