summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-10-17 17:50:40 +0000
committerrubidium <rubidium@openttd.org>2010-10-17 17:50:40 +0000
commitcca0ca3d707221fcb08f5ba0216a93ee73dc8e45 (patch)
tree71612b060b6b9a34ff61c595d648f5e0dae8e11c /src/console.cpp
parenta269d150a7c11c6ad223c6532914ead689b9371a (diff)
downloadopenttd-cca0ca3d707221fcb08f5ba0216a93ee73dc8e45.tar.xz
(svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, or config.lib, decided you don't need network support
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/console.cpp b/src/console.cpp
index a578008e5..922385202 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -112,7 +112,9 @@ void IConsolePrint(ConsoleColour colour_code, const char *string)
str_validate(str, str + strlen(str));
if (_network_dedicated) {
+#ifdef ENABLE_NETWORK
NetworkAdminConsole("console", str);
+#endif /* ENABLE_NETWORK */
fprintf(stdout, "%s%s\n", GetLogPrefix(), str);
fflush(stdout);
IConsoleWriteToLogFile(str);