From: Samual Date: Sun, 15 Jan 2012 23:08:42 +0000 (-0500) Subject: Fix mutator hook system for client commands (now sandbox works, CuBeOwL) X-Git-Tag: xonotic-v0.6.0~160^2 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=48b083dcb8c3f20e6e9a3afcf145559ad421e88f;p=xonotic%2Fxonotic-data.pk3dir.git Fix mutator hook system for client commands (now sandbox works, CuBeOwL) --- diff --git a/qcsrc/server/command/cmd.qc b/qcsrc/server/command/cmd.qc index e8a620731..b901aca6b 100644 --- a/qcsrc/server/command/cmd.qc +++ b/qcsrc/server/command/cmd.qc @@ -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