diff options
author | truelight <truelight@openttd.org> | 2004-12-04 18:57:42 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-04 18:57:42 +0000 |
commit | 40121d60cd3b0054fdf0927c8363fe2f74fd4d97 (patch) | |
tree | f82c6ceb6096ba1515cd5a7a6d29b45e04f535be /vehicle.c | |
parent | 43e495045c1364199feb2d84ef7c938967200020 (diff) | |
download | openttd-40121d60cd3b0054fdf0927c8363fe2f74fd4d97.tar.xz |
(svn r948) -Codechange: clearified my last commit a bit more with some comment in the code
Diffstat (limited to 'vehicle.c')
-rw-r--r-- | vehicle.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; } |