Merge branch 'show_veh_tunnel' into jgrpp

This commit is contained in:
Jonathan G Rennison
2015-08-02 18:25:08 +01:00
9 changed files with 30 additions and 12 deletions

View File

@@ -3383,7 +3383,7 @@ bool TrainController(Train *v, Vehicle *nomove, bool reverse)
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);
continue;
}
}
@@ -3910,7 +3910,7 @@ static bool TrainLocoHandler(Train *v, bool mode)
}
for (Train *u = v; u != NULL; u = u->Next()) {
if ((u->vehstatus & VS_HIDDEN) != 0) continue;
if (!(u->IsDrawn())) continue;
u->UpdateViewport(false, false);
}