diff options
author | peter1138 <peter1138@openttd.org> | 2005-12-28 22:29:59 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2005-12-28 22:29:59 +0000 |
commit | 901068fd6e2b2c7059a59b5ec97c92e1ffe0633c (patch) | |
tree | 36bb1703510989fc2a6344323a6e775738b29355 /ship_cmd.c | |
parent | 139d1ed1ebc26ceeb1bb68af27d5d1644c5a988a (diff) | |
download | openttd-901068fd6e2b2c7059a59b5ec97c92e1ffe0633c.tar.xz |
(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.
Diffstat (limited to 'ship_cmd.c')
-rw-r--r-- | ship_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ship_cmd.c b/ship_cmd.c index 880ef60da..1b117c136 100644 --- a/ship_cmd.c +++ b/ship_cmd.c @@ -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); |