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

@@ -3343,7 +3343,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;
}
}
@@ -3870,7 +3870,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);
}