summaryrefslogtreecommitdiff
path: root/unix.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
commit5540485fd88ad8b23341b6aa89221432061a2459 (patch)
tree495f01b0b0c73eb75ae04baf11bd52020619fb18 /unix.c
parented399ffd8471874283090c324ab33d4746c3e95a (diff)
downloadopenttd-5540485fd88ad8b23341b6aa89221432061a2459.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 'unix.c')
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index 9127f800d..97d287bea 100644
--- a/unix.c
+++ b/unix.c
@@ -151,7 +151,7 @@ int CDECL main(int argc, char* argv[])
ChangeWorkingDirectory(argv[0]);
#endif
- _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);
SeedMT(_random_seeds[0][1]);
signal(SIGPIPE, SIG_IGN);