diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-04 19:09:25 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-04 19:09:25 +0000 |
commit | a29a5b14a0223154be2cf8d8805fd10e94635746 (patch) | |
tree | cb53d9b31749571fad59eb9a55def4eeaf78dff0 /dedicated.c | |
parent | f1631ebed7ed23f5e025996ebb1557e63e5d0ba3 (diff) | |
download | openttd-a29a5b14a0223154be2cf8d8805fd10e94635746.tar.xz |
(svn r2266) - Feature: it is now possible to start a dedicated server on Win98/95, for the few sadistic geeks that really want to do this (thanks for testing Hackykid). Also fix up another glitch in console output
Diffstat (limited to 'dedicated.c')
-rw-r--r-- | dedicated.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dedicated.c b/dedicated.c index 612f6bd1d..c2ee4f511 100644 --- a/dedicated.c +++ b/dedicated.c @@ -110,12 +110,13 @@ void WINAPI CheckForConsoleInput(void) void CreateWindowsConsoleThread(void) { static char tbuffer[9]; + DWORD dwThreadId; /* Create event to signal when console input is ready */ hEvent = CreateEvent(NULL, false, false, _strtime(tbuffer)); if (hEvent == NULL) error("Cannot create console event!"); - hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)CheckForConsoleInput, 0, 0, NULL); + hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)CheckForConsoleInput, NULL, 0, &dwThreadId); if (hThread == NULL) error("Cannot create console thread!"); |