Add client setting to enable shared order group window for single vehicles

This commit is contained in:
Jonathan G Rennison
2017-08-18 01:49:03 +01:00
parent 2a3f59dc8a
commit ac016eae5e
10 changed files with 43 additions and 10 deletions

View File

@@ -1923,6 +1923,9 @@ public:
if (data == 0) {
/* This needs to be done in command-scope to enforce rebuilding before resorting invalid data */
this->vehicles.ForceRebuild();
if (this->vli.type == VL_SHARED_ORDERS && !_settings_client.gui.enable_single_veh_shared_order_gui && this->vehicles.Length() == 1) {
delete this;
}
} else {
this->vehicles.ForceResort();
}