equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 /** @file console.cpp Handling of the in-game console. */ |
3 /** @file console.cpp Handling of the in-game console. */ |
4 |
4 |
5 #include "stdafx.h" |
5 #include "stdafx.h" |
6 #include "console_internal.h" |
|
7 #include "network/network_data.h" |
|
8 #include "network/network_server.h" |
|
9 #include "core/alloc_func.hpp" |
6 #include "core/alloc_func.hpp" |
10 #include "string_func.h" |
7 #include "string_func.h" |
|
8 #include "strings_type.h" |
|
9 #include "core/math_func.hpp" |
|
10 #include "console_internal.h" |
|
11 #include "network/network.h" |
|
12 #include "network/network_func.h" |
11 #include "rev.h" |
13 #include "rev.h" |
12 |
14 |
13 #include <stdarg.h> |
15 #include <stdarg.h> |
14 |
16 |
15 #include "table/strings.h" |
17 #include "table/strings.h" |
88 { |
90 { |
89 char *str; |
91 char *str; |
90 #ifdef ENABLE_NETWORK |
92 #ifdef ENABLE_NETWORK |
91 if (_redirect_console_to_client != 0) { |
93 if (_redirect_console_to_client != 0) { |
92 /* Redirect the string to the client */ |
94 /* Redirect the string to the client */ |
93 SEND_COMMAND(PACKET_SERVER_RCON)(NetworkFindClientStateFromIndex(_redirect_console_to_client), color_code, string); |
95 NetworkServerSendRcon(_redirect_console_to_client, color_code, string); |
94 return; |
96 return; |
95 } |
97 } |
96 #endif |
98 #endif |
97 |
99 |
98 /* Create a copy of the string, strip if of colours and invalid |
100 /* Create a copy of the string, strip if of colours and invalid |