Add setting to enable through loading in UI

This commit is contained in:
Jonathan G Rennison
2018-03-29 18:52:54 +01:00
parent 8337fcb271
commit 7aab49e282
5 changed files with 15 additions and 0 deletions

View File

@@ -1850,6 +1850,9 @@ public:
} else if (sel == this->selected_order) {
if (this->vehicle->type == VEH_TRAIN && sel < this->vehicle->GetNumOrders()) {
int osl = ((this->vehicle->GetOrder(sel)->GetStopLocation() + 1) % OSL_END);
if (osl == OSL_PLATFORM_THROUGH && !_settings_client.gui.show_adv_load_mode_features) {
osl = OSL_PLATFORM_NEAR_END;
}
if (osl == OSL_PLATFORM_THROUGH) {
for (const Vehicle *u = this->vehicle; u != NULL; u = u->Next()) {
/* Passengers may not be through-loaded */