From c68174b1b3a7edc6a18397642b2eb10230e7599f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 17 Oct 2010 17:50:40 +0000 Subject: [PATCH] (svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, or config.lib, decided you don't need network support --- src/console.cpp | 2 ++ src/debug.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/console.cpp b/src/console.cpp index a578008e5c..9223852024 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); diff --git a/src/debug.cpp b/src/debug.cpp index 965ed5d1b1..3cdb6aaaea 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -94,7 +94,9 @@ static void debug_print(const char *dbg, const char *buf) #else fprintf(stderr, "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf); #endif +#ifdef ENABLE_NETWORK NetworkAdminConsole(dbg, buf); +#endif /* ENABLE_NETWORK */ IConsoleDebug(dbg, buf); } else { static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);