summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-13 14:00:26 +0000
committertruebrain <truebrain@openttd.org>2009-01-13 14:00:26 +0000
commitc3249d599fb4805b6c59e89c28c4d2720a7bcae0 (patch)
treefcc285a1912310512f00a09a911ee585210e5611 /src/company_cmd.cpp
parent405239758ecd3dad1d52322b2fea05ed350d15bb (diff)
downloadopenttd-c3249d599fb4805b6c59e89c28c4d2720a7bcae0.tar.xz
(svn r15059) -Add [NoAI]: use 'start_date' from the AI configure to see when an AI should start next
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 4a27b512d..be18fb279 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -494,9 +494,7 @@ static void MaybeStartNewCompany()
DoCommandP(0, 1, 0, CMD_COMPANY_CTRL);
}
- /* The next AI starts like the difficulty setting said, with +2 month max */
- _next_competitor_start = _settings_game.difficulty.competitor_start_time * 90 * DAY_TICKS + 1;
- _next_competitor_start += _network_server ? InteractiveRandomRange(60 * DAY_TICKS) : RandomRange(60 * DAY_TICKS);
+ _next_competitor_start = AI::GetStartNextTime() * 30 * DAY_TICKS;
}
void InitializeCompanies()