Changeset - r3576:6a49e4233fbf
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-04-17 19:26:18
peter1138@openttd.org
(svn r4462) - Newstations: ensure the chosen tile layout is available from a custom station
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
station_cmd.c
Show inline comments
 
@@ -1942,10 +1942,12 @@ static void DrawTile_Station(TileInfo *t
 

	
 
		if (statspec != NULL) {
 
			const Station* st = GetStationByTile(ti->tile);
 
			uint tile = GetStationGfx(ti->tile);
 

	
 
			relocation = GetCustomStationRelocation(statspec, st, 0);
 
			//debug("Relocation %d", relocation);
 
			t = &statspec->renderdata[GetStationGfx(ti->tile)];
 

	
 
			/* Ensure the chosen tile layout is valid for this custom station */
 
			t = &statspec->renderdata[tile < statspec->tiles ? tile : GetRailStationAxis(ti->tile)];
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)