From 034f5abc4b7b969bdcf176ecf91ee837912f208a Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 18 Oct 2006 17:44:46 +0000 Subject: [PATCH] (svn r6823) - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations. --- station_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/station_cmd.c b/station_cmd.c index 373f30a906..c846a7b6dd 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 */