summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-15 20:29:06 +0000
committerludde <ludde@openttd.org>2005-07-15 20:29:06 +0000
commit71f9078bddbf26a771c259bc4cde377b90a980ba (patch)
tree4082dbe36cd4d476e1d16f70a88eaa90adb7523f /win32.c
parentc964809d374ef9af63a384a1bd7bc01cdc1bbbf5 (diff)
downloadopenttd-71f9078bddbf26a771c259bc4cde377b90a980ba.tar.xz
(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
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c7
1 files changed, 7 insertions, 0 deletions
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