From 71f9078bddbf26a771c259bc4cde377b90a980ba Mon Sep 17 00:00:00 2001 From: ludde Date: Fri, 15 Jul 2005 20:29:06 +0000 Subject: (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 --- win32.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'win32.c') diff --git a/win32.c b/win32.c index 00107cc55..f6d416833 100644 --- a/win32.c +++ b/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); +} \ No newline at end of file -- cgit v1.2.3-70-g09d2