(svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window

This commit is contained in:
smatz
2010-09-06 14:14:09 +00:00
parent d2572f94d2
commit fd54943c7a
11 changed files with 77 additions and 111 deletions

View File

@@ -441,6 +441,7 @@ public:
if (id_v >= this->vehicles.Length()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
if (VehicleClicked(v)) break;
this->vehicle_sel = v->index;
@@ -531,7 +532,7 @@ public:
if (id_v >= this->vehicles.Length()) return; // click out of list bound
const Vehicle *v = this->vehicles[id_v];
if (vindex == v->index) {
if (!VehicleClicked(v) && vindex == v->index) {
ShowVehicleViewWindow(v);
}
break;