forked from mirror/OpenTTD
(svn r2583) Move OS specific code out of misc.c
Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
This commit is contained in:
7
win32.c
7
win32.c
@@ -2124,6 +2124,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
_random_seeds[0][0] = GetTickCount();
|
||||
_random_seeds[0][1] = _random_seeds[0][0] * 0x1234567;
|
||||
#endif
|
||||
SeedMT(_random_seeds[0][0]);
|
||||
|
||||
argc = ParseCommandLine(GetCommandLine(), argv, lengthof(argv));
|
||||
|
||||
@@ -2263,3 +2264,9 @@ void JoinOTTDThread(void)
|
||||
|
||||
WaitForSingleObject(hThread, INFINITE);
|
||||
}
|
||||
|
||||
|
||||
void CSleep(int milliseconds)
|
||||
{
|
||||
Sleep(milliseconds);
|
||||
}
|
Reference in New Issue
Block a user