# HG changeset patch # User truelight # Date 1102186662 0 # Node ID 440429cbe70d2af7f4936a1c6ee8da4fd6443ac2 # Parent 561716b39595a8cf3adbc660ec5a5f1553e1ac66 (svn r948) -Codechange: clearified my last commit a bit more with some comment in the code diff -r 561716b39595 -r 440429cbe70d vehicle.c --- a/vehicle.c Sat Dec 04 18:43:07 2004 +0000 +++ b/vehicle.c Sat Dec 04 18:57:42 2004 +0000 @@ -168,6 +168,12 @@ 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; }