(svn r6823) - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations.
authorpeter1138
Wed, 18 Oct 2006 17:44:46 +0000
changeset 4886 d89110a382ae
parent 4885 c9fe8c52fd50
child 4887 3fa54b371032
(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
--- 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 */