File diff r13023:9f6499c8d4fb → r13024:48c81d0b078a
src/timetable_cmd.cpp
Show inline comments
 
@@ -40,7 +40,7 @@ static void ChangeTimetable(Vehicle *v, 
 
				v->current_order.wait_time = time;
 
			}
 
		}
 
		InvalidateWindow(WC_VEHICLE_TIMETABLE, v->index);
 
		SetWindowDirty(WC_VEHICLE_TIMETABLE, v->index);
 
	}
 
}
 

	
 
@@ -176,7 +176,7 @@ CommandCost CmdAutofillTimetable(TileInd
 
			ClrBit(v2->vehicle_flags, VF_AUTOFILL_TIMETABLE);
 
			ClrBit(v2->vehicle_flags, VF_AUTOFILL_PRES_WAIT_TIME);
 
		}
 
		InvalidateWindow(WC_VEHICLE_TIMETABLE, v2->index);
 
		SetWindowDirty(WC_VEHICLE_TIMETABLE, v2->index);
 
	}
 

	
 
	return CommandCost();
 
@@ -241,6 +241,6 @@ void UpdateVehicleTimetable(Vehicle *v, 
 
	v->lateness_counter -= (timetabled - time_taken);
 

	
 
	for (v = v->FirstShared(); v != NULL; v = v->NextShared()) {
 
		InvalidateWindow(WC_VEHICLE_TIMETABLE, v->index);
 
		SetWindowDirty(WC_VEHICLE_TIMETABLE, v->index);
 
	}
 
}