Changeset - r13853:f49866bc3b48
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2009-12-03 18:44:33
frosch@openttd.org
(svn r18392) -Fix (r13956)[FS#3345]: [YAPP] Trains on bridges were not found, when searching for the origin of a reservation. (Hirundo)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/pbs.cpp
Show inline comments
 
@@ -243,7 +243,7 @@ static Vehicle *FindTrainOnTrackEnum(Veh
 
	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!) */
0 comments (0 inline, 0 general)