projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5afe28
)
Fix mutator hook system for client commands (now sandbox works, CuBeOwL)
author
Samual <samual@xonotic.org>
Sun, 15 Jan 2012 23:08:42 +0000
(18:08 -0500)
committer
Samual <samual@xonotic.org>
Sun, 15 Jan 2012 23:08:42 +0000
(18:08 -0500)
qcsrc/server/command/cmd.qc
patch
|
blob
|
history
diff --git
a/qcsrc/server/command/cmd.qc
b/qcsrc/server/command/cmd.qc
index e8a6207314af6c8b23a0152e88b1ab9ae1d9cf93..b901aca6bc01947c0d6279ab20db5473ecf1cdee 100644
(file)
--- 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