1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-27 16:39:09 +00:00

Fix: [NewGRF] Result bit 0 of callback 14 was not ignored in the GUI.

This commit is contained in:
frosch
2022-09-10 22:56:27 +02:00
committed by frosch
parent f7022925d3
commit 5c66de860d

View File

@@ -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();