summaryrefslogtreecommitdiff
path: root/dedicated.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-13 16:51:10 +0000
committertruelight <truelight@openttd.org>2004-12-13 16:51:10 +0000
commitdfe9020f56b3c2a6468528b6860e939ca6bc2ac0 (patch)
treeca44150c1d01ccf58041e5a73e66970aba771e56 /dedicated.c
parentf89cf61691959bf866a399caec8cdcb43b56ccee (diff)
downloadopenttd-dfe9020f56b3c2a6468528b6860e939ca6bc2ac0.tar.xz
(svn r1056) -Fix: [Network] Give the dedicated-server always a console in windows (sign_de)
Diffstat (limited to 'dedicated.c')
-rw-r--r--dedicated.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dedicated.c b/dedicated.c
index 0f9139841..b164181c8 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;
}