diff options
author | rubidium <rubidium@openttd.org> | 2008-03-27 14:34:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-27 14:34:29 +0000 |
commit | e9dad7637e36dbbdc2fbb3a7b84809ba33d53832 (patch) | |
tree | 9c12650ca5391cf880b30cab61c47cc1ef1c965b /src/vehicle_gui.cpp | |
parent | b490a21e503c07da2dc52d0614272845c24e35f1 (diff) | |
download | openttd-e9dad7637e36dbbdc2fbb3a7b84809ba33d53832.tar.xz |
(svn r12441) -Feature: open the time table when pressing the order button while pressing the CTRL key. Patch by Phil Sophus.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 57fabec4e..c19badd40 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -2079,7 +2079,11 @@ static void VehicleViewWndProc(Window *w, WindowEvent *e) ShowVehicleRefitWindow(v, INVALID_VEH_ORDER_ID); break; case VVW_WIDGET_SHOW_ORDERS: /* show orders */ - ShowOrdersWindow(v); + if (_ctrl_pressed) { + ShowTimetableWindow(v); + } else { + ShowOrdersWindow(v); + } break; case VVW_WIDGET_SHOW_DETAILS: /* show details */ ShowVehicleDetailsWindow(v); |