1
0
Fork 0

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

pull/14115/head
frosch 2025-04-26 15:58:30 +02:00 committed by GitHub
parent 1ea1dbd19e
commit 55753795bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ bool TriggerAirportAnimation(Station *st, AirportAnimationTrigger trigger, Cargo
uint8_t var18_extra = 0; uint8_t var18_extra = 0;
if (IsValidCargoType(cargo_type)) { 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)) { if (DoTriggerAirportTileAnimation(st, tile, trigger, random, var18_extra)) {