From 549dafc241682464684a0fbe2ed9fdb907f12e26 Mon Sep 17 00:00:00 2001 From: truelight Date: Mon, 13 Dec 2004 16:51:10 +0000 Subject: [PATCH] (svn r1056) -Fix: [Network] Give the dedicated-server always a console in windows (sign_de) --- dedicated.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dedicated.c b/dedicated.c index 0f91398411..b164181c86 100644 --- a/dedicated.c +++ b/dedicated.c @@ -32,6 +32,12 @@ static const char *DedicatedVideoStart(char **parm) { _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; }