mirror of https://github.com/OpenTTD/OpenTTD
Fix: [NewGRF] Cargo-types for airport-tile animation-triggers were not properly translated. (#14092)
parent
1ea1dbd19e
commit
55753795bf
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue