summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-02-02 22:40:04 +0000
committersmatz <smatz@openttd.org>2011-02-02 22:40:04 +0000
commita4bf3be864dcff13dd1550c6badaa47184e53bfb (patch)
tree06351f6640f3d9a9a3777b977496f3100ee422e6 /src
parent3bfad0243b0e7abf143f928060ececade449588f (diff)
downloadopenttd-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.cpp2
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);
}