]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update the "invalid command" print to actually have the command string if it exists.
authorSamual <samual@xonotic.org>
Fri, 11 Nov 2011 04:36:11 +0000 (23:36 -0500)
committerSamual <samual@xonotic.org>
Fri, 11 Nov 2011 04:36:11 +0000 (23:36 -0500)
qcsrc/client/gamecommand.qc
qcsrc/server/gamecommand.qc

index f85d946f6eaa93cf0eace2198f69520de13e992c..65bf3f63ac935a3584b4741bdac28d6de493a345 100644 (file)
@@ -334,7 +334,7 @@ void GameCommand(string command)
        }
        
        // nothing above caught the command, must be invalid
-       print("Invalid command. For a list of supported commands, try cl_cmd help.\n");
+       print("Invalid command", (command ? strcat(" '", command, "'") : ""), ". For a list of supported commands, try cl_cmd help.\n");
        
        return;
 }
index 4e1ca0bfb6b7b0f0d2ccc630e0f14e3c391b5536..35fa70ace8c24d305c9f416e1098d3b75c960f82 100644 (file)
@@ -1993,7 +1993,7 @@ void GameCommand(string command)
        }
        
        // nothing above caught the command, must be invalid
-       print("Invalid command. For a list of supported commands, try sv_cmd help.\n");
+       print("Invalid command", (command ? strcat(" '", command, "'") : ""), ". For a list of supported commands, try sv_cmd help.\n");
        
        return;
 }
\ No newline at end of file