summaryrefslogtreecommitdiff
path: root/win32.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 /win32.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 'win32.c')
-rw-r--r--win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index 48c50027c..6c692dced 100644
--- a/win32.c
+++ b/win32.c
@@ -859,8 +859,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
_set_error_mode(_OUT_TO_MSGBOX); // force assertion output to messagebox
// setup random seed to something quite random
- _random_seeds[0][0] = GetTickCount();
- _random_seeds[0][1] = _random_seeds[0][0] * 0x1234567;
+ _random_seeds[1][0] = _random_seeds[0][0] = GetTickCount();
+ _random_seeds[1][1] = _random_seeds[0][1] = _random_seeds[0][0] * 0x1234567;
SeedMT(_random_seeds[0][0]);
argc = ParseCommandLine(GetCommandLine(), argv, lengthof(argv));