summaryrefslogtreecommitdiff
path: root/src/date.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-09-15 17:18:22 +0000
committerbelugas <belugas@openttd.org>2008-09-15 17:18:22 +0000
commit9419a28a4b46a3608f5b985575762ce0104030d0 (patch)
treebbcf66eb7b0fe5be0cf11258b7cfa2654517ac4b /src/date.cpp
parentffa39caf3dd099f8fa69d9c25ff24885fd4ce44a (diff)
downloadopenttd-9419a28a4b46a3608f5b985575762ce0104030d0.tar.xz
(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by introducing a daily random industry change.
This will allow to perform more changes per month on big maps and less on smaller maps, while not overtaxing the IndustryMonthlyLoop process. Thanks to frosch, for nice code ideas and rewrites
Diffstat (limited to 'src/date.cpp')
-rw-r--r--src/date.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/date.cpp b/src/date.cpp
index 0e99e314a..180781ce5 100644
--- a/src/date.cpp
+++ b/src/date.cpp
@@ -159,7 +159,7 @@ Date ConvertYMDToDate(Year year, Month month, Day day)
extern void WaypointsDailyLoop();
extern void EnginesDailyLoop();
extern void DisasterDailyLoop();
-
+extern void IndustryDailyLoop();
extern void PlayersMonthlyLoop();
extern void EnginesMonthlyLoop();
extern void TownsMonthlyLoop();
@@ -229,6 +229,7 @@ void IncreaseDate()
DisasterDailyLoop();
WaypointsDailyLoop();
+ IndustryDailyLoop();
if (_game_mode != GM_MENU) {
InvalidateWindowWidget(WC_STATUS_BAR, 0, 0);