]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix mutator hook system for client commands (now sandbox works, CuBeOwL)
authorSamual <samual@xonotic.org>
Sun, 15 Jan 2012 23:08:42 +0000 (18:08 -0500)
committerSamual <samual@xonotic.org>
Sun, 15 Jan 2012 23:08:42 +0000 (18:08 -0500)
qcsrc/server/command/cmd.qc

index e8a6207314af6c8b23a0152e88b1ab9ae1d9cf93..b901aca6bc01947c0d6279ab20db5473ecf1cdee 100644 (file)
@@ -660,6 +660,11 @@ void SV_ParseClientCommand(string command)
 {
        float argc = tokenize_console(command);
        
+       // for the mutator hook system
+       cmd_name = strtolower(argv(0));
+       cmd_argc = argc;
+       cmd_string = command;
+       
        // Guide for working with argc arguments by example:
        // argc:   1    - 2      - 3     - 4
        // argv:   0    - 1      - 2     - 3