From: LegendaryGuard Date: Sat, 10 Apr 2021 23:34:39 +0000 (+0200) Subject: Fix inserted setflag command correctly (helping z411 to improve stuff) X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=34174171cc72a71285b404d273cf99b8e01423ad;p=xonotic%2Fxonotic-data.pk3dir.git Fix inserted setflag command correctly (helping z411 to improve stuff) --- diff --git a/qcsrc/server/command/sv_cmd.qc b/qcsrc/server/command/sv_cmd.qc index 0c511b435..060502f9e 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -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));