Jonathan G Rennison
2015-07-30 00:32:55 +01:00
parent 67366cf03d
commit 5e7638a6d0
9 changed files with 30 additions and 12 deletions

View File

@@ -1160,7 +1160,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;
}
@@ -1568,7 +1568,7 @@ static bool RoadVehController(RoadVehicle *v)
v->SetLastSpeed();
for (RoadVehicle *u = v; u != NULL; u = u->Next()) {
if ((u->vehstatus & VS_HIDDEN) != 0) continue;
if (!(u->IsDrawn())) continue;
u->UpdateViewport(false, false);
}