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/industry_cmd.cpp | |
parent | 2d25def2ff7617a4f800d16eacce704395d962cf (diff) | |
download | openttd-dc6ed2c2c02a651a50b2d2b232302d0c7eab48ec.tar.xz |
(svn r20279) -Doc: Doxygen additions/improvements.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 43b54b1ff..c3bb22baa 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -1922,6 +1922,10 @@ void GenerateIndustries() } } +/** + * Monthly update of industry statistics. + * @param i Industry to update. + */ static void UpdateIndustryStatistics(Industry *i) { for (byte j = 0; j < lengthof(i->produced_cargo); j++) { @@ -2363,11 +2367,13 @@ static void ChangeIndustryProduction(Industry *i, bool monthly) } } -/** Daily handler for the industry changes +/** + * Daily handler for the industry changes * Taking the original map size of 256*256, the number of random changes was always of just one unit. * But it cannot be the same on smaller or bigger maps. That number has to be scaled up or down. * For small maps, it implies that less than one change per month is required, while on bigger maps, - * it would be way more. The daily loop handles those changes. */ + * it would be way more. The daily loop handles those changes. + */ void IndustryDailyLoop() { _economy.industry_daily_change_counter += _economy.industry_daily_increment; |