Changeset - r103:e5f3ec1f3efe
[Not reviewed]
master
0 1 0
dominik - 20 years ago 2004-08-21 23:56:01
dominik@openttd.org
(svn r104) Fix: wrong pathfinding when northern station tile is missing (blathijs)
1 file changed with 6 insertions and 7 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1330,13 +1330,12 @@ static bool TrainTrackFollower(uint tile
 

	
 
static void FillWithStationData(TrainTrackFollowerData *fd, Vehicle *v)
 
{
 
	uint tile;
 

	
 
	fd->dest_coords = tile = v->dest_tile;
 
	fd->station_index = -1;
 

	
 
	if (IS_TILETYPE(tile, MP_STATION) && IS_BYTE_INSIDE(_map5[tile], 0, 8) )
 
		fd->station_index = _map2[tile];
 
        fd->dest_coords = v->dest_tile;
 
        if ((v->next_order & OT_MASK) == OT_GOTO_STATION)
 
                fd->station_index = v->next_order_param;
 
        else
 
                fd->station_index = -1;
 

	
 
}
 

	
 
static const byte _initial_tile_subcoord[6][4][3] = {
0 comments (0 inline, 0 general)