]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the other half of checkfail
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 10:47:26 +0000 (20:47 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 10:47:26 +0000 (20:47 +1000)
commands.cfg
qcsrc/server/command/cmd.qc
qcsrc/server/command/cmd.qh

index e860a7edb8910f90db4302b239463f1fe416248a..d009e13d67df48e5224ac7488b28834650762ff4 100644 (file)
@@ -146,7 +146,6 @@ seta cl_autoswitch 1 "automatically switch to newly picked up weapons if they ar
 
 // commented out commands are really only intended for internal use, or already have declaration in the engine
 alias autoswitch           "qc_cmd_cmd    autoswitch           ${* ?}" // Whether or not to switch automatically when getting a better weapon
-alias checkfail            "qc_cmd_cmd    checkfail            ${* ?}" // Report if a client-side check failed
 alias clientversion        "qc_cmd_cmd    clientversion        ${* ?}" // Release version of the game
 //alias mv_getpicture      "qc_cmd_cmd    mv_getpicture        ${* ?}" // Retrieve mapshot picture from the server
 alias join                 "qc_cmd_cmd    join                 ${* ?}" // Become a player in the game
index d38baf784a49ebac0ff823fb3f789edba57dda29..a34752c9c76587b079be74788917a245343ebcdf 100644 (file)
@@ -87,28 +87,6 @@ void ClientCommand_autoswitch(float request, float argc)
        }
 }
 
-void ClientCommand_checkfail(float request, string command) // internal command, used only by code
-{
-       switch(request)
-       {
-               case CMD_REQUEST_COMMAND:
-               {
-                       LOG_INFOF("CHECKFAIL: %s (%s) epically failed check %s\n", self.netname, self.netaddress, substring(command, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)));
-                       self.checkfail = 1;
-                       return; // never fall through to usage
-               }
-
-               default:
-                       sprint(self, "Incorrect parameters for ^2checkfail^7\n");
-               case CMD_REQUEST_USAGE:
-               {
-                       sprint(self, "\nUsage:^3 cmd checkfail <message>\n");
-                       sprint(self, "  Where 'message' is the message reported by client about the fail.\n");
-                       return;
-               }
-       }
-}
-
 void ClientCommand_clientversion(float request, float argc) // internal command, used only by code
 {
        switch(request)
@@ -656,7 +634,6 @@ void ClientCommand_(float request)
 // Do not hard code aliases for these, instead create them in commands.cfg... also: keep in alphabetical order, please ;)
 #define CLIENT_COMMANDS(request,arguments,command) \
        CLIENT_COMMAND("autoswitch", ClientCommand_autoswitch(request, arguments), "Whether or not to switch automatically when getting a better weapon") \
-       CLIENT_COMMAND("checkfail", ClientCommand_checkfail(request, command), "Report if a client-side check failed") \
        CLIENT_COMMAND("clientversion", ClientCommand_clientversion(request, arguments), "Release version of the game") \
        CLIENT_COMMAND("mv_getpicture", ClientCommand_mv_getpicture(request, arguments), "Retrieve mapshot picture from the server") \
        CLIENT_COMMAND("join", ClientCommand_join(request), "Become a player in the game") \
index 3eabab763342053c83c5dfc7a2e1e3e8d0ffb703..0e04ce781cb2da5f570e192a614e5ebd8fe18ad5 100644 (file)
@@ -9,7 +9,6 @@
 .float cmd_floodtime;
 .float cmd_floodcount;
 .float lms_spectate_warning;
-.float checkfail;
 
 // number of monsters spawned with mobspawn command
 float totalspawned;