From: Mario Date: Sat, 24 Jan 2015 03:49:57 +0000 (+1100) Subject: Also do functions X-Git-Tag: xonotic-v0.8.1~133^2~56 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=91456b2925a8c92bcc8e4a42d117d566c1c97f69;p=xonotic%2Fxonotic-data.pk3dir.git Also do functions --- diff --git a/qcsrc/client/command/cl_cmd.qc b/qcsrc/client/command/cl_cmd.qc index 9ce7822ee..4fad33629 100644 --- a/qcsrc/client/command/cl_cmd.qc +++ b/qcsrc/client/command/cl_cmd.qc @@ -422,7 +422,7 @@ void LocalCommand_macro_help() return; } -float LocalCommand_macro_command(int argc) +bool LocalCommand_macro_command(int argc) { #define CLIENT_COMMAND(name,function,description) \ { if(name == strtolower(argv(0))) { function; return TRUE; } } @@ -433,7 +433,7 @@ float LocalCommand_macro_command(int argc) return FALSE; } -float LocalCommand_macro_usage(int argc) +bool LocalCommand_macro_usage(int argc) { #define CLIENT_COMMAND(name,function,description) \ { if(name == strtolower(argv(1))) { function; return TRUE; } } @@ -444,7 +444,7 @@ float LocalCommand_macro_usage(int argc) return FALSE; } -void LocalCommand_macro_write_aliases(float fh) +void LocalCommand_macro_write_aliases(int fh) { #define CLIENT_COMMAND(name,function,description) \ { if(strtolower(description) != "") { CMD_Write_Alias("qc_cmd_cl", name, description); } } @@ -568,7 +568,7 @@ void ConsoleCommand_macro_init() return; } -float ConsoleCommand_macro_normal(int argc) +bool ConsoleCommand_macro_normal(int argc) { #define CONSOLE_COMMAND(name,execution) \ { if(name == strtolower(argv(0))) { { execution } return TRUE; } } @@ -579,7 +579,7 @@ float ConsoleCommand_macro_normal(int argc) return FALSE; } -float ConsoleCommand_macro_movement(int argc) +bool ConsoleCommand_macro_movement(int argc) { if(camera_active) { @@ -599,7 +599,7 @@ float ConsoleCommand_macro_movement(int argc) // ====================================================== // Used to parse commands in the console that have been registered with the "registercommand" function -float CSQC_ConsoleCommand(string command) +bool CSQC_ConsoleCommand(string command) { int argc = tokenize_console(command);