1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 19:39:12 +00:00

(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.

This commit is contained in:
rubidium
2006-08-24 10:19:59 +00:00
parent e9443f0d7a
commit d14ac4478d
3 changed files with 4 additions and 5 deletions

2
unix.c
View File

@@ -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);