From 5c66de860d9a1e95bd68aa9b458ce5ca5c8d7258 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 10 Sep 2022 22:56:27 +0200 Subject: [PATCH] Fix: [NewGRF] Result bit 0 of callback 14 was not ignored in the GUI. --- src/newgrf_station.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp index fdbe4cfa9b..698d360a0c 100644 --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -789,7 +789,7 @@ bool DrawStationTile(int x, int y, RailType railtype, Axis axis, StationClassID if (HasBit(statspec->callback_mask, CBM_STATION_SPRITE_LAYOUT)) { uint16 callback = GetStationCallback(CBID_STATION_SPRITE_LAYOUT, 0, 0, statspec, nullptr, INVALID_TILE); - if (callback != CALLBACK_FAILED) tile = callback; + if (callback != CALLBACK_FAILED) tile = callback & ~1; } uint32 total_offset = rti->GetRailtypeSpriteOffset();