1
0
Fork 0

(svn r6823) - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations.

release/0.5
peter1138 2006-10-18 17:44:46 +00:00
parent f730a2864f
commit 034f5abc4b
1 changed files with 1 additions and 1 deletions

View File

@ -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 */