mirror of https://github.com/OpenTTD/OpenTTD
(svn r20977) -Fix (r20975): compilation didn't get to the link stage if you, or config.lib, decided you don't need network support
parent
a269d150a7
commit
cca0ca3d70
|
@ -112,7 +112,9 @@ void IConsolePrint(ConsoleColour colour_code, const char *string)
|
||||||
str_validate(str, str + strlen(str));
|
str_validate(str, str + strlen(str));
|
||||||
|
|
||||||
if (_network_dedicated) {
|
if (_network_dedicated) {
|
||||||
|
#ifdef ENABLE_NETWORK
|
||||||
NetworkAdminConsole("console", str);
|
NetworkAdminConsole("console", str);
|
||||||
|
#endif /* ENABLE_NETWORK */
|
||||||
fprintf(stdout, "%s%s\n", GetLogPrefix(), str);
|
fprintf(stdout, "%s%s\n", GetLogPrefix(), str);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
IConsoleWriteToLogFile(str);
|
IConsoleWriteToLogFile(str);
|
||||||
|
|
|
@ -94,7 +94,9 @@ static void debug_print(const char *dbg, const char *buf)
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf);
|
fprintf(stderr, "%sdbg: [%s] %s\n", GetLogPrefix(), dbg, buf);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_NETWORK
|
||||||
NetworkAdminConsole(dbg, buf);
|
NetworkAdminConsole(dbg, buf);
|
||||||
|
#endif /* ENABLE_NETWORK */
|
||||||
IConsoleDebug(dbg, buf);
|
IConsoleDebug(dbg, buf);
|
||||||
} else {
|
} else {
|
||||||
static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);
|
static FILE *f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);
|
||||||
|
|
Loading…
Reference in New Issue