summaryrefslogtreecommitdiff
path: root/src/timetable_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-09 13:55:33 +0000
committerrubidium <rubidium@openttd.org>2013-06-09 13:55:33 +0000
commita2af1f69afd1971f062ca2ce4047496ed0dbf320 (patch)
tree4c4e01f32aa3d4aaa3f4a69dbda83309917fc397 /src/timetable_gui.cpp
parenta724a9924bb4b489370befce7dcf3c3a39c310bb (diff)
downloadopenttd-a2af1f69afd1971f062ca2ce4047496ed0dbf320.tar.xz
(svn r25377) -Feature: timetable spreading of vehicles by Ctrl+Click when setting a start date
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r--src/timetable_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index 56b672139..27f73c525 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -525,7 +525,7 @@ struct TimetableWindow : Window {
}
case WID_VT_START_DATE: // Change the date that the timetable starts.
- ShowSetDateWindow(this, v->index, _date, _cur_year, _cur_year + 15, ChangeTimetableStartCallback);
+ ShowSetDateWindow(this, v->index | (v->orders.list->IsCompleteTimetable() && _ctrl_pressed ? 1U << 20 : 0), _date, _cur_year, _cur_year + 15, ChangeTimetableStartCallback);
break;
case WID_VT_CHANGE_TIME: { // "Wait For" button.