]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix inserted setflag command correctly (helping z411 to improve stuff)
authorLegendaryGuard <rootuser999@gmail.com>
Sat, 10 Apr 2021 23:34:39 +0000 (01:34 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Sat, 10 Apr 2021 23:34:39 +0000 (01:34 +0200)
qcsrc/server/command/sv_cmd.qc

index 0c511b435f813c84404e13d1383471e58dc32b61..060502f9ee7fcc3a38f84eb40c2deabe90b2dafc 100644 (file)
@@ -1048,7 +1048,6 @@ void GameCommand_setflag(int request, int argc)
        {
                case CMD_REQUEST_COMMAND:
                {
-                       
                        entity client;
                        float accepted;
                        
@@ -1062,6 +1061,7 @@ void GameCommand_setflag(int request, int argc)
                        }
                        
                        client.countrycode = stof(argv(2));
+                       return;
                }
                default:
                        LOG_INFOF("Incorrect parameters for ^2%s^7", argv(0));