diff options
author | rubidium <rubidium@openttd.org> | 2008-12-22 12:59:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-22 12:59:31 +0000 |
commit | 782b80eff755afcf7d4b3c5f9237bc65457b4e16 (patch) | |
tree | bb6d8bbfd056eeed669e31e87f2c987bc038a42a /src/console.cpp | |
parent | 8431174e88f1996f5bedce8128d4f91fa20edcf3 (diff) | |
download | openttd-782b80eff755afcf7d4b3c5f9237bc65457b4e16.tar.xz |
(svn r14709) -Codechange: make a clearer distinction between 'unique' client identification ids and the indices into the clients/client info arrays.
Diffstat (limited to 'src/console.cpp')
-rw-r--r-- | src/console.cpp | 4 |
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; |