From 2533210fc9590c439f91525ab083ba3ef7802549 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 6 Feb 2017 01:53:06 +0000 Subject: [PATCH] Fix tunnels underground view merge issue with custom bridgeheads. --- src/roadveh_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp index d42efc2376..5ae5a2a5e4 100644 --- a/src/roadveh_cmd.cpp +++ b/src/roadveh_cmd.cpp @@ -1181,7 +1181,7 @@ bool IndividualRoadVehicleController(RoadVehicle *v, const RoadVehicle *prev) v->x_pos = gp.x; v->y_pos = gp.y; v->UpdatePosition(); - if ((v->vehstatus & VS_HIDDEN) == 0) v->Vehicle::UpdateViewport(true); + if (v->IsDrawn()) v->Vehicle::UpdateViewport(true); return true; } }