diff options
author | peter1138 <peter1138@openttd.org> | 2006-10-18 17:44:46 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-10-18 17:44:46 +0000 |
commit | 95d9e4f4f11c89d05900850db498e06feffae708 (patch) | |
tree | fb1545e3672e37d361af1d86b124bf930ba3276f /station_cmd.c | |
parent | e1fec27445b7f40ba15eb24383aeeb4f9d3f830d (diff) | |
download | openttd-95d9e4f4f11c89d05900850db498e06feffae708.tar.xz |
(svn r6823) - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations.
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/station_cmd.c b/station_cmd.c index 373f30a90..c846a7b6d 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2067,7 +2067,7 @@ static void DrawTile_Station(TileInfo *ti) if (HASBIT(statspec->callbackmask, CBM_CUSTOM_LAYOUT)) { uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0, 0, statspec, st, ti->tile); - if (callback != CALLBACK_FAILED) tile = callback + GetRailStationAxis(ti->tile); + if (callback != CALLBACK_FAILED) tile = (callback & ~1) + GetRailStationAxis(ti->tile); } /* Ensure the chosen tile layout is valid for this custom station */ |