1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-20 04:59:11 +00:00

Fix: [NewGRF] Cargo-types for airport-tile animation-triggers were not properly translated. (#14092)

This commit is contained in:
frosch
2025-04-26 15:58:30 +02:00
committed by GitHub
parent 1ea1dbd19e
commit 55753795bf

View File

@@ -325,7 +325,8 @@ bool TriggerAirportAnimation(Station *st, AirportAnimationTrigger trigger, Cargo
uint8_t var18_extra = 0;
if (IsValidCargoType(cargo_type)) {
var18_extra |= cargo_type << 8;
const AirportTileSpec *ats = AirportTileSpec::GetByTile(tile);
var18_extra |= ats->grf_prop.grffile->cargo_map[cargo_type] << 8;
}
if (DoTriggerAirportTileAnimation(st, tile, trigger, random, var18_extra)) {