Add setting for whether to hide default stop location

This commit is contained in:
Jonathan G Rennison
2023-11-13 19:21:57 +00:00
parent fc1c47cbd2
commit 86fff56c14
5 changed files with 15 additions and 1 deletions

View File

@@ -917,7 +917,7 @@ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int
}
if (v->type == VEH_TRAIN && (order->GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION) == 0) {
/* Only show the stopping location if other than the default chosen by the player. */
if (order->GetStopLocation() != (OrderStopLocation)(_settings_client.gui.stop_location)) {
if (!_settings_client.gui.hide_default_stop_location || order->GetStopLocation() != (OrderStopLocation)(_settings_client.gui.stop_location)) {
SetDParam(7, order->GetStopLocation() + STR_ORDER_STOP_LOCATION_NEAR_END);
} else {
SetDParam(7, STR_EMPTY);