mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r948) -Codechange: clearified my last commit a bit more with some comment in the code
This commit is contained in:
parent
43e495045c
commit
40121d60cd
@ -168,6 +168,12 @@ static Vehicle *InitializeVehicle(Vehicle *v)
|
|||||||
v->next = NULL;
|
v->next = NULL;
|
||||||
v->next_hash = 0xffff;
|
v->next_hash = 0xffff;
|
||||||
v->string_id = 0;
|
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);
|
v->random_bits = InteractiveRandomRange(256);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user