From 1ffc70079787954dda1182de89eca25f36837490 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 28 Dec 2005 22:29:59 +0000 Subject: (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. --- roadveh_cmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'roadveh_cmd.c') 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); -- cgit v1.2.3-54-g00ecf