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
commit0682dc3a0d97ecee26d807476071d5f552f86212 (patch)
treebbcf66eb7b0fe5be0cf11258b7cfa2654517ac4b /src/date.cpp
parent606f4defdca281a3f918c9525dbd4d525ad11131 (diff)
downloadopenttd-0682dc3a0d97ecee26d807476071d5f552f86212.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);