Open train vehicle details window on total cargo tab if shift pressed

This is instead of ctrl, as this is now used in trunk

See: 793d01ec, cc1d72c3
This commit is contained in:
Jonathan G Rennison
2020-03-31 17:43:39 +01:00
parent 4338541be8
commit db52acaade

View File

@@ -2385,7 +2385,7 @@ struct VehicleDetailsWindow : Window {
this->owner = v->owner; this->owner = v->owner;
this->tab = TDW_TAB_CARGO; this->tab = TDW_TAB_CARGO;
if (v->type == VEH_TRAIN && _ctrl_pressed) this->tab = TDW_TAB_TOTALS; if (v->type == VEH_TRAIN && _shift_pressed) this->tab = TDW_TAB_TOTALS;
} }
~VehicleDetailsWindow() ~VehicleDetailsWindow()