summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-30 18:20:26 +0000
committerrubidium <rubidium@openttd.org>2008-05-30 18:20:26 +0000
commit2f3b88ef9a217e911c897de49cc616e73a233b59 (patch)
treeae098eb73283ba9ab9875b3df24bbe3b5eb7fef1 /src/console.cpp
parente81386476f09997485e7f707f3349685e2140a97 (diff)
downloadopenttd-2f3b88ef9a217e911c897de49cc616e73a233b59.tar.xz
(svn r13343) -Codechange: reorder/move variable/functions in the network headers so that nothing from the network directory needs to include basically all network headers.
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