mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 15:39:09 +00:00
(svn r3352) - NewGRF: Move initialization of vehicle random_bits to DC_EXEC blocks to allow use of Random() instead of InteractiveRandom(), which will alleviate some possible network desyncs.
This commit is contained in:
@@ -888,6 +888,7 @@ int32 CmdBuildShip(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||
v->build_year = _cur_year;
|
||||
v->cur_image = 0x0E5E;
|
||||
v->type = VEH_Ship;
|
||||
v->random_bits = VehicleRandomBits();
|
||||
|
||||
VehiclePositionChanged(v);
|
||||
|
||||
|
Reference in New Issue
Block a user