diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-30 08:01:29 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-30 08:01:29 +0000 |
| commit | b4cef60d62e24d3c0c0451e94adf99254a259a3d (patch) | |
| tree | 315d821277f7ea85d3f30d87818005aa77c67438 /src/game/client/components/console.cpp | |
| parent | 0511e1152a13ad99b51a819a75ef457404e86d4c (diff) | |
| download | zcatch-b4cef60d62e24d3c0c0451e94adf99254a259a3d.tar.gz zcatch-b4cef60d62e24d3c0c0451e94adf99254a259a3d.zip | |
fixed the remote console
Diffstat (limited to 'src/game/client/components/console.cpp')
| -rw-r--r-- | src/game/client/components/console.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/game/client/components/console.cpp b/src/game/client/components/console.cpp index f9ec4ae3..66a2249a 100644 --- a/src/game/client/components/console.cpp +++ b/src/game/client/components/console.cpp @@ -349,6 +349,14 @@ void CONSOLE::client_console_print_callback(const char *str, void *user_data) ((CONSOLE *)user_data)->local_console.print_line(str); } +void CONSOLE::print_line(int type, const char *line) +{ + if(type == 0) + local_console.print_line(line); + else if(type == 1) + remote_console.print_line(line); +} + void CONSOLE::on_init() { // @@ -372,13 +380,15 @@ static void con_team(void *result, void *user_data) send_switch_team(console_arg_int(result, 0)); } -void send_kill(int client_id); - static void con_kill(void *result, void *user_data) { send_kill(-1); } +void send_kill(int client_id); + + + static void con_key_input_state(void *result, void *user_data) { ((int *)user_data)[0] = console_arg_int(result, 0); |