1
0
Fork 0

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

pull/14092/head
frosch 2025-04-24 17:33:41 +02:00
parent 1ea1dbd19e
commit e8ca9137f3
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;
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)) {