(svn r1056) -Fix: [Network] Give the dedicated-server always a console in windows (sign_de)
authortruelight
Mon, 13 Dec 2004 16:51:10 +0000
changeset 626 35294912464a
parent 625 40c83b088bb8
child 627 5495f77a0e7c
(svn r1056) -Fix: [Network] Give the dedicated-server always a console in windows (sign_de)
dedicated.c
--- a/dedicated.c	Mon Dec 13 16:16:28 2004 +0000
+++ b/dedicated.c	Mon Dec 13 16:51:10 2004 +0000
@@ -32,6 +32,12 @@
 	_debug_net_level = 6;
 	_debug_misc_level = 0;
 
+#ifdef WIN32
+	// For win32 we need to allocate an console (debug mode does the same)
+	CreateConsole();
+	SetConsoleTitle("OpenTTD Dedicated Server");
+#endif
+
 	DEBUG(misc,0)("Loading dedicated server...");
 	return NULL;
 }