Changeset - r548:414380f2af2b
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2004-12-04 18:57:42
truelight@openttd.org
(svn r948) -Codechange: clearified my last commit a bit more with some comment in the code
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -168,6 +168,12 @@ static Vehicle *InitializeVehicle(Vehicl
 
	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;
 
}
0 comments (0 inline, 0 general)