]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/commands/cl_cmd.qc
Handle impulse command in client code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / commands / cl_cmd.qc
index 8faf0f387b6ccd33103cbfd825dec2692a7ac760..e0ea3e53478d3f41974fdd705784c4817a50910c 100644 (file)
@@ -5,7 +5,7 @@
 // ==============================================
 
 #include <common/command/_mod.qh>
-#include "cl_cmd.qh"
+#include "impulse.qh"
 
 #include "../autocvars.qh"
 #include "../defs.qh"
@@ -655,6 +655,9 @@ bool CSQC_ConsoleCommand(string command)
 {
        int argc = tokenize_console(command);
        string s = strtolower(argv(0));
+       if (s == "impulse" && impulse_handle(argv(1))) {
+               return true;
+       }
        // Return value should be true if CSQC handled the command, otherwise return false to have the engine handle it.
        return ConsoleCommand_macro_normal(s, argc)
               || ConsoleCommand_macro_movement(s, argc)