Fix: [NewGRF] Upper 16 random bits should be the same for all station tiles in callback 140. (#9992)

pull/428/head
frosch 2 years ago committed by GitHub
parent c839950791
commit 54ac304828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -948,7 +948,7 @@ void TriggerStationAnimation(BaseStation *st, TileIndex trigger_tile, StationAni
} else { } else {
cargo = ss->grf_prop.grffile->cargo_map[cargo_type]; cargo = ss->grf_prop.grffile->cargo_map[cargo_type];
} }
StationAnimationBase::ChangeAnimationFrame(CBID_STATION_ANIM_START_STOP, ss, st, tile, (random_bits << 16) | Random(), (uint8)trigger | (cargo << 8)); StationAnimationBase::ChangeAnimationFrame(CBID_STATION_ANIM_START_STOP, ss, st, tile, (random_bits << 16) | GB(Random(), 0, 16), (uint8)trigger | (cargo << 8));
} }
} }
} }

Loading…
Cancel
Save