mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-25 21:39:25 +01:00
Fix: [NewGRF] Cargo-types for airport-tile animation-triggers were not properly translated. (#14092)
This commit is contained in:
parent
1ea1dbd19e
commit
55753795bf
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user