(svn r25377) -Feature: timetable spreading of vehicles by Ctrl+Click when setting a start date

This commit is contained in:
rubidium
2013-06-09 13:55:33 +00:00
parent a724a9924b
commit a2af1f69af
4 changed files with 79 additions and 8 deletions

View File

@@ -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.