mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r4462) - Newstations: ensure the chosen tile layout is available from a custom station
This commit is contained in:
parent
01cd0f6fd3
commit
49160bde23
@ -1942,10 +1942,12 @@ static void DrawTile_Station(TileInfo *ti)
|
||||
|
||||
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)];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user