diff options
author | smatz <smatz@openttd.org> | 2011-02-02 22:40:04 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-02-02 22:40:04 +0000 |
commit | a4bf3be864dcff13dd1550c6badaa47184e53bfb (patch) | |
tree | 06351f6640f3d9a9a3777b977496f3100ee422e6 /src | |
parent | 3bfad0243b0e7abf143f928060ececade449588f (diff) | |
download | openttd-a4bf3be864dcff13dd1550c6badaa47184e53bfb.tar.xz |
(svn r21948) -Fix: road vehicle was moved under the bridge when it was destroyed by an UFO while on a bridge
Diffstat (limited to 'src')
-rw-r--r-- | src/roadveh_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index b94bbbb9b..44717dda6 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -437,7 +437,7 @@ static void RoadVehSetRandomDirection(RoadVehicle *v) uint32 r = Random(); v->direction = ChangeDir(v->direction, delta[r & 3]); - v->UpdateInclination(false, true); + v->UpdateViewport(true, true); } while ((v = v->Next()) != NULL); } |