From 40121d60cd3b0054fdf0927c8363fe2f74fd4d97 Mon Sep 17 00:00:00 2001 From: truelight Date: Sat, 4 Dec 2004 18:57:42 +0000 Subject: (svn r948) -Codechange: clearified my last commit a bit more with some comment in the code --- vehicle.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vehicle.c') diff --git a/vehicle.c b/vehicle.c index ea540c8bd..e91511f6e 100644 --- a/vehicle.c +++ b/vehicle.c @@ -168,6 +168,12 @@ static Vehicle *InitializeVehicle(Vehicle *v) v->next = NULL; v->next_hash = 0xffff; v->string_id = 0; + /* random_bits is used to pick out a random sprite for vehicles + which are technical the same (newgrf stuff). + Because RandomRange() results in desyncs, and because it does + not really matter that one client has other visual vehicles then + the other, it can be InteractiveRandomRange() without any problem + */ v->random_bits = InteractiveRandomRange(256); return v; } -- cgit v1.2.3-54-g00ecf