summaryrefslogtreecommitdiff
path: root/players.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-09-06 18:22:25 +0000
committerdarkvater <darkvater@openttd.org>2004-09-06 18:22:25 +0000
commitaa0212515882c5a90c3f2cb86f05952b832a5a9f (patch)
treeef79f4519291cb14b916d6ee44f742eedae48690 /players.c
parentbf0652d3fce57024fe56f75d43898a261fea7570 (diff)
downloadopenttd-aa0212515882c5a90c3f2cb86f05952b832a5a9f.tar.xz
(svn r166) -Codechange: change 74 for constant DAY_TICKS
Diffstat (limited to 'players.c')
-rw-r--r--players.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/players.c b/players.c
index 833f1dcf2..020b0d0f6 100644
--- a/players.c
+++ b/players.c
@@ -494,7 +494,7 @@ Player *DoStartupNewPlayer(bool is_ai)
void StartupPlayers()
{
// The AI starts like in the setting with +2 month max
- _next_competitor_start = _opt.diff.competitor_start_time * 90 * 74 + RandomRange(60 * 74) + 1;
+ _next_competitor_start = _opt.diff.competitor_start_time * 90 * DAY_TICKS + RandomRange(60 * DAY_TICKS) + 1;
}
static void MaybeStartNewPlayer()
@@ -513,7 +513,7 @@ static void MaybeStartNewPlayer()
DoStartupNewPlayer(true);
// The next AI starts like the difficulty setting said, with +2 month max
- _next_competitor_start = _opt.diff.competitor_start_time * 90 * 74 + RandomRange(60 * 74) + 1;
+ _next_competitor_start = _opt.diff.competitor_start_time * 90 * DAY_TICKS + RandomRange(60 * DAY_TICKS) + 1;
}
void InitializePlayers()