vehicle.c
changeset 826 fff56bbc3606
parent 817 238bbdaa228b
child 829 e7b66723eba7
equal deleted inserted replaced
825:66d2d61e77a8 826:fff56bbc3606
   201 	v->next_hash = 0xffff;
   201 	v->next_hash = 0xffff;
   202 	v->string_id = 0;
   202 	v->string_id = 0;
   203 	/* random_bits is used to pick out a random sprite for vehicles
   203 	/* random_bits is used to pick out a random sprite for vehicles
   204 	    which are technical the same (newgrf stuff).
   204 	    which are technical the same (newgrf stuff).
   205 	   Because RandomRange() results in desyncs, and because it does
   205 	   Because RandomRange() results in desyncs, and because it does
   206 	    not really matter that one client has other visual vehicles then
   206 	    not really matter that one client has other visual vehicles than
   207 	    the other, it can be InteractiveRandomRange() without any problem
   207 	    the other, it can be InteractiveRandomRange() without any problem
   208 	*/
   208 	*/
   209 	v->random_bits = InteractiveRandomRange(256);
   209 	v->random_bits = InteractiveRandomRange(256);
   210 	return v;
   210 	return v;
   211 }
   211 }