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 | 1ffc70079787954dda1182de89eca25f36837490 (patch) | |
tree | 36bb1703510989fc2a6344323a6e775738b29355 /roadveh_cmd.c | |
parent | a4de62577deffc10b3d9b1c2c3316c3dbd1d5675 (diff) | |
download | openttd-1ffc70079787954dda1182de89eca25f36837490.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 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 3467f3ae1..a640351ff 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -187,6 +187,7 @@ int32 CmdBuildRoadVeh(int x, int y, uint32 flags, uint32 p1, uint32 p2) v->type = VEH_Road; v->cur_image = 0xC15; + v->random_bits = VehicleRandomBits(); VehiclePositionChanged(v); |