When clearing auto timetables, mark times as undefined rather than 0.
Fix unautomate timetable having reversed ctrl key behaviour, update tooltip string with ctrl behaviour. Minor comment/whitespace fixes.
This commit is contained in:
@@ -263,9 +263,9 @@ static int CDECL VehicleTimetableSorter(Vehicle * const *ap, Vehicle * const *bp
|
||||
* Set the start date of the timetable.
|
||||
* @param tile Not used.
|
||||
* @param flags Operation to perform.
|
||||
* @param p2 Various bitstuffed elements
|
||||
* - p2 = (bit 0-19) - Vehicle ID.
|
||||
* - p2 = (bit 20) - Set to 1 to set timetable start for all vehicles sharing this order
|
||||
* @param p1 Various bitstuffed elements
|
||||
* - p1 = (bit 0-19) - Vehicle ID.
|
||||
* - p1 = (bit 20) - Set to 1 to set timetable start for all vehicles sharing this order
|
||||
* @param p2 The timetable start date.
|
||||
* @param text Not used.
|
||||
* @return The error or cost of the operation.
|
||||
@@ -432,8 +432,8 @@ CommandCost CmdAutomateTimetable(TileIndex index, DoCommandFlag flags, uint32 p1
|
||||
OrderList *orders = v2->orders.list;
|
||||
if (orders != NULL) {
|
||||
for (int i = 0; i < orders->GetNumOrders(); i++) {
|
||||
ChangeTimetable(v2, i, 0, MTF_WAIT_TIME, true);
|
||||
ChangeTimetable(v2, i, 0, MTF_TRAVEL_TIME, true);
|
||||
ChangeTimetable(v2, i, 0, MTF_WAIT_TIME, false);
|
||||
ChangeTimetable(v2, i, 0, MTF_TRAVEL_TIME, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user