diff options
author | rubidium <rubidium@openttd.org> | 2009-01-03 23:32:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-03 23:32:59 +0000 |
commit | 3024850bb10d82c2d18707d824d1b652ed1a74b8 (patch) | |
tree | 1a52113132e5eae93b37709f7356be106e6f3c42 /src/timetable_gui.cpp | |
parent | e9484cff121ad8db85274b50e558142b63c0fc65 (diff) | |
download | openttd-3024850bb10d82c2d18707d824d1b652ed1a74b8.tar.xz |
(svn r14819) -Change: make details and order menu stickyable, like the timetable window. Also let the detail/order/timetable window close eachther, like the detail and order windows already did, when not stickied.
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r-- | src/timetable_gui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 4097788d8..6920d2a1e 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -8,6 +8,7 @@ #include "command_func.h" #include "gui.h" #include "window_gui.h" +#include "window_func.h" #include "textbuf_gui.h" #include "cargotype.h" #include "strings_func.h" @@ -366,5 +367,7 @@ static const WindowDesc _timetable_desc = { void ShowTimetableWindow(const Vehicle *v) { + DeleteWindowById(WC_VEHICLE_DETAILS, v->index, false); + DeleteWindowById(WC_VEHICLE_ORDERS, v->index, false); AllocateWindowDescFront<TimetableWindow>(&_timetable_desc, v->index); } |