1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-07-27 14:25:58 +01:00

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

This commit is contained in:
frosch 2022-09-03 22:37:03 +02:00 committed by GitHub
parent c839950791
commit 54ac304828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));
} }
} }
} }