# HG changeset patch # User peter1138 # Date 1161193486 0 # Node ID d89110a382aeb8668d167b77f30dd5334cbd522f # Parent c9fe8c52fd50dab3905a5b0148e363265933dd29 (svn r6823) - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations. diff -r c9fe8c52fd50 -r d89110a382ae station_cmd.c --- a/station_cmd.c Wed Oct 18 14:42:19 2006 +0000 +++ b/station_cmd.c Wed Oct 18 17:44:46 2006 +0000 @@ -2067,7 +2067,7 @@ 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 */