# HG changeset patch # User Darkvater # Date 1115233765 0 # Node ID 2441d894623700afa66d5d12d5705955db0af297 # Parent f5eea0a214bb385e3414c5c629131c45b9a1e1a0 (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 diff -r f5eea0a214bb -r 2441d8946237 console_cmds.c --- a/console_cmds.c Wed May 04 10:17:00 2005 +0000 +++ b/console_cmds.c Wed May 04 19:09:25 2005 +0000 @@ -1042,7 +1042,7 @@ bool NetworkChangeCompanyPassword(byte argc, char *argv[]) { if (argc == 0) { - IConsolePrintF(_iconsole_color_warning, "Current value of 'company_pw': %s", _network_player_info[_local_player].password); + IConsolePrintF(_iconsole_color_warning, "Current value for 'company_pw': %s", _network_player_info[_local_player].password); return true; } @@ -1103,7 +1103,7 @@ DEF_CONSOLE_CMD(ConProcServerIP) { if (argc == 0) { - IConsolePrintF(_iconsole_color_warning, "Current value of 'server_ip': %s", inet_ntoa(*(struct in_addr *)&_network_server_bind_ip)); + IConsolePrintF(_iconsole_color_warning, "Current value for 'server_ip': %s", inet_ntoa(*(struct in_addr *)&_network_server_bind_ip)); return true; } diff -r f5eea0a214bb -r 2441d8946237 dedicated.c --- a/dedicated.c Wed May 04 10:17:00 2005 +0000 +++ b/dedicated.c Wed May 04 19:09:25 2005 +0000 @@ -110,12 +110,13 @@ 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!");