(svn r21948) -Fix: road vehicle was moved under the bridge when it was destroyed by an UFO while on a bridge
This commit is contained in:
@@ -437,7 +437,7 @@ static void RoadVehSetRandomDirection(RoadVehicle *v)
|
|||||||
uint32 r = Random();
|
uint32 r = Random();
|
||||||
|
|
||||||
v->direction = ChangeDir(v->direction, delta[r & 3]);
|
v->direction = ChangeDir(v->direction, delta[r & 3]);
|
||||||
v->UpdateInclination(false, true);
|
v->UpdateViewport(true, true);
|
||||||
} while ((v = v->Next()) != NULL);
|
} while ((v = v->Next()) != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user