diff options
author | celestar <celestar@openttd.org> | 2006-04-08 05:24:29 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-08 05:24:29 +0000 |
commit | 9760d3dccf127d8462790d7296ef50551de12751 (patch) | |
tree | 3105e9a752ef277e9095134e5f1345e798696264 /station_cmd.c | |
parent | 4fdb25e65b9cae42cf75f08e7318f82b7ac991f5 (diff) | |
download | openttd-9760d3dccf127d8462790d7296ef50551de12751.tar.xz |
(svn r4319) -Codechange: Station map accessors
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c index 86f47b77d..51a863c4f 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -1926,11 +1926,11 @@ static void DrawTile_Station(TileInfo *ti) relocation = GetCustomStationRelocation(statspec, st, 0); //debug("Relocation %d", relocation); - t = &statspec->renderdata[ti->map5]; + t = &statspec->renderdata[GetStationGfx(ti->tile)]; } } - if (t == NULL) t = &_station_display_datas[ti->map5]; + if (t == NULL) t = &_station_display_datas[GetStationGfx(ti->tile)]; image = t->ground_sprite; if (image & PALETTE_MODIFIER_COLOR) image |= image_or_modificator; |