From a4bf3be864dcff13dd1550c6badaa47184e53bfb Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 2 Feb 2011 22:40:04 +0000 Subject: (svn r21948) -Fix: road vehicle was moved under the bridge when it was destroyed by an UFO while on a bridge --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2