summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-21 13:27:09 +0000
committerrubidium <rubidium@openttd.org>2009-02-21 13:27:09 +0000
commita4567f243d7bf2f13ac11a16c4fbb04cf5e2ba11 (patch)
tree17b96fe5bfc448e2a73b7e9ccedcef93598d4342 /src
parent157e0481adb80ad0bb7144ca661042ea78ac8bc7 (diff)
downloadopenttd-a4567f243d7bf2f13ac11a16c4fbb04cf5e2ba11.tar.xz
(svn r15543) -Change: allow the default debug level of 6 for a dedicated server to be overriden by -d (if used after -D).
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp1
-rw-r--r--src/video/dedicated_v.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index d2fc2c658..416dfa47d 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -439,6 +439,7 @@ int ttd_main(int argc, char *argv[])
videodriver = strdup("dedicated");
blitter = strdup("null");
dedicated = true;
+ SetDebugString("net=6");
if (mgo.opt != NULL) {
/* Use the existing method for parsing (openttd -n).
* However, we do ignore the #company part. */
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 21ce2bd1d..7cf9da897 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -141,8 +141,6 @@ const char *VideoDriver_Dedicated::Start(const char * const *parm)
_screen.height = _cur_resolution.height;
ScreenSizeChanged();
- SetDebugString("net=6");
-
#if defined(WINCE)
/* WinCE doesn't support console stuff */
#elif defined(WIN32)