Mercurial > hg > openttd
changeset 13863:5e0d41f1c723 draft
(svn r18392) -Fix (r13956)[FS#3345]: [YAPP] Trains on bridges were not found, when searching for the origin of a reservation. (Hirundo)
author | frosch <frosch@openttd.org> |
---|---|
date | Thu, 03 Dec 2009 18:44:33 +0000 |
parents | 90fbb5c8a162 |
children | defa06be1acb |
files | src/pbs.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/pbs.cpp +++ b/src/pbs.cpp @@ -243,7 +243,7 @@ if (v->type != VEH_TRAIN || (v->vehstatus & VS_CRASHED)) return NULL; Train *t = Train::From(v); - if (HasBit((TrackBits)t->track, TrackdirToTrack(info->res.trackdir))) { + if (t->track == TRACK_BIT_WORMHOLE || HasBit((TrackBits)t->track, TrackdirToTrack(info->res.trackdir))) { t = t->First(); /* ALWAYS return the lowest ID (anti-desync!) */