summaryrefslogtreecommitdiff
path: root/os2.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-24 10:19:59 +0000
committerrubidium <rubidium@openttd.org>2006-08-24 10:19:59 +0000
commitd14ac4478d35f7ae9b7ced6e78673a27a85fc878 (patch)
tree495f01b0b0c73eb75ae04baf11bd52020619fb18 /os2.c
parente9443f0d7ae7b06bb8daac7aec18c11a46f4a31d (diff)
downloadopenttd-d14ac4478d35f7ae9b7ced6e78673a27a85fc878.tar.xz
(svn r6086) -Fix: InteractiveRandom was not seeded properly resulting in the dedicated server always generating the same map. Thanks to the #openttdcoop team for detecting.
Diffstat (limited to 'os2.c')
-rw-r--r--os2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/os2.c b/os2.c
index 91531eb58..de8cc661e 100644
--- a/os2.c
+++ b/os2.c
@@ -125,8 +125,7 @@ int CDECL main(int argc, char* argv[])
// change the working directory to enable doubleclicking in UIs
ChangeWorkingDirectory(argv[0]);
- _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
-
+ _random_seeds[1][1] = _random_seeds[1][0] = _random_seeds[0][1] = _random_seeds[0][0] = time(NULL);
return ttd_main(argc, argv);
}