summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/console.cpp b/src/console.cpp
index 30d51cb1c..a9f2d20c3 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -3,13 +3,13 @@
/** @file console.cpp Handling of the in-game console. */
#include "stdafx.h"
-#include "console_internal.h"
-#include "network/network_data.h"
-#include "network/network_server.h"
#include "core/alloc_func.hpp"
#include "string_func.h"
#include "strings_type.h"
#include "core/math_func.hpp"
+#include "console_internal.h"
+#include "network/network.h"
+#include "network/network_func.h"
#include "rev.h"
#include <stdarg.h>
@@ -92,7 +92,7 @@ void IConsolePrint(ConsoleColour color_code, const char *string)
#ifdef ENABLE_NETWORK
if (_redirect_console_to_client != 0) {
/* Redirect the string to the client */
- SEND_COMMAND(PACKET_SERVER_RCON)(NetworkFindClientStateFromIndex(_redirect_console_to_client), color_code, string);
+ NetworkServerSendRcon(_redirect_console_to_client, color_code, string);
return;
}
#endif