# HG changeset patch # User frosch # Date 2022-09-03 20:37:03 # Node ID 6afe236dc29297fabd009dace57234e457abb4e2 # Parent 296e33b4ea33494568b0be4e0bb5cb81ab2cb586 Fix: [NewGRF] Upper 16 random bits should be the same for all station tiles in callback 140. (#9992) diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp --- a/src/newgrf_station.cpp +++ b/src/newgrf_station.cpp @@ -948,7 +948,7 @@ void TriggerStationAnimation(BaseStation } else { 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)); } } }