diff options
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r-- | src/build_vehicle_gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp index 94647881d..5535af88d 100644 --- a/src/build_vehicle_gui.cpp +++ b/src/build_vehicle_gui.cpp @@ -996,6 +996,14 @@ static void NewVehicleWndProc(Window *w, WindowEvent *e) BuildVehicleClickEvent(w, e); break; + case WE_DOUBLE_CLICK: + if (e->we.click.widget == BUILD_VEHICLE_WIDGET_LIST) { + /* When double clicking, we want to buy a vehicle */ + e->we.click.widget = BUILD_VEHICLE_WIDGET_BUILD; + BuildVehicleClickEvent(w, e); + } + break; + case WE_ON_EDIT_TEXT: { if (e->we.edittext.str[0] != '\0') { StringID str = STR_NULL; |