Disabling timetable automation without ctrl no longer clears timetable
This commit is contained in:
@@ -1017,7 +1017,6 @@ struct TimetableWindow : GeneralVehicleWindow {
|
||||
case WID_VT_AUTOMATE: {
|
||||
uint32 p2 = 0;
|
||||
if (!HasBit(v->vehicle_flags, VF_AUTOMATE_TIMETABLE)) SetBit(p2, 0);
|
||||
if (_ctrl_pressed) SetBit(p2, 1);
|
||||
DoCommandP(0, v->index, p2, CMD_AUTOMATE_TIMETABLE | CMD_MSG(STR_ERROR_CAN_T_TIMETABLE_VEHICLE));
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user