summaryrefslogtreecommitdiff
path: root/src/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/console.cpp')
-rw-r--r--src/console.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console.cpp b/src/console.cpp
index 3cc11f31b..f034d498c 100644
--- a/src/console.cpp
+++ b/src/console.cpp
@@ -38,7 +38,7 @@ void IConsoleInit()
{
_iconsole_output_file = NULL;
#ifdef ENABLE_NETWORK /* Initialize network only variables */
- _redirect_console_to_client = 0;
+ _redirect_console_to_client = INVALID_CLIENT_ID;
#endif
IConsoleGUIInit();
@@ -90,7 +90,7 @@ void IConsolePrint(ConsoleColour color_code, const char *string)
{
char *str;
#ifdef ENABLE_NETWORK
- if (_redirect_console_to_client != 0) {
+ if (_redirect_console_to_client != INVALID_CLIENT_ID) {
/* Redirect the string to the client */
NetworkServerSendRcon(_redirect_console_to_client, color_code, string);
return;