Changeset - r166:b7e190c1cc3b
[Not reviewed]
master
0 1 0
truelight - 20 years ago 2004-09-06 18:33:51
truelight@openttd.org
(svn r167) -Fix: [972247] bug in '[a] weird non-uniform stations handling'
(blathijs)
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1306,8 +1306,11 @@ static bool TrainTrackFollower(uint tile
 
		return false;
 

	
 
	// did we reach the final station?
 
	if (tile == ttfd->dest_coords ||
 
			(IS_TILETYPE(tile, MP_STATION) && IS_BYTE_INSIDE(_map5[tile], 0, 8) && _map2[tile] == ttfd->station_index)) {
 
 if ((ttfd->station_index == -1 && tile == ttfd->dest_coords) ||
 
  (IS_TILETYPE(tile, MP_STATION) && IS_BYTE_INSIDE(_map5[tile], 0, 8) && _map2[tile] == ttfd->station_index)) {
 
  /* We do not check for dest_coords if we have a station_index,
 
   * because in that case the dest_coords are just an
 
   * approximation of where the station is */
 
		// found station
 
		ttfd->best_bird_dist = 0;
 
		if (length < ttfd->best_track_dist) {
0 comments (0 inline, 0 general)