diff options
author | alberth <alberth@openttd.org> | 2010-08-01 17:45:53 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-01 17:45:53 +0000 |
commit | dc6ed2c2c02a651a50b2d2b232302d0c7eab48ec (patch) | |
tree | 29a7c1aa361bf156c083f5d295bf973da8867db9 /src/date.cpp | |
parent | 2d25def2ff7617a4f800d16eacce704395d962cf (diff) | |
download | openttd-dc6ed2c2c02a651a50b2d2b232302d0c7eab48ec.tar.xz |
(svn r20279) -Doc: Doxygen additions/improvements.
Diffstat (limited to 'src/date.cpp')
-rw-r--r-- | src/date.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/date.cpp b/src/date.cpp index 3c29eaf82..bdf4dd0fc 100644 --- a/src/date.cpp +++ b/src/date.cpp @@ -27,6 +27,10 @@ Date _date; ///< Current date in days (day counter) DateFract _date_fract; uint16 _tick_counter; ///< Ever incrementing (and sometimes wrapping) tick counter for setting off various events +/** + * Set the date. + * @param date New date + */ void SetDate(Date date) { YearMonthDay ymd; @@ -69,6 +73,7 @@ enum DaysTillMonth { ACCUM_DEC = ACCUM_NOV + 30, }; +/** Number of days to pass from the first day in the year before reaching the first of a month. */ static const uint16 _accum_days_for_month[] = { ACCUM_JAN, ACCUM_FEB, ACCUM_MAR, ACCUM_APR, ACCUM_MAY, ACCUM_JUN, ACCUM_JUL, ACCUM_AUG, @@ -82,8 +87,7 @@ static const uint16 _accum_days_for_month[] = { */ void ConvertDateToYMD(Date date, YearMonthDay *ymd) { - /* - * Year determination in multiple steps to account for leap + /* Year determination in multiple steps to account for leap * years. First do the large steps, then the smaller ones. */ @@ -152,6 +156,7 @@ Date ConvertYMDToDate(Year year, Month month, Day day) extern void EnginesDailyLoop(); extern void DisasterDailyLoop(); extern void IndustryDailyLoop(); + extern void CompaniesMonthlyLoop(); extern void EnginesMonthlyLoop(); extern void TownsMonthlyLoop(); @@ -166,6 +171,7 @@ extern void TownsYearlyLoop(); extern void ShowEndGameChart(); +/** Available settings for autosave intervals. */ static const Month _autosave_months[] = { 0, ///< never 1, ///< every month |