(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 78c7e1c9f7c5
parent 625 682ead270492
child 627 a78f58e07142
(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;
 }