Mercurial > hg > openttd
changeset 3474:ca61aedfd525 draft
(svn r4319) -Codechange: Station map accessors
author | celestar <celestar@openttd.org> |
---|---|
date | Sat, 08 Apr 2006 05:24:29 +0000 |
parents | d7511478b000 |
children | cfc8648d09e4 |
files | station_cmd.c station_map.h |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/station_cmd.c +++ b/station_cmd.c @@ -1926,11 +1926,11 @@ 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;