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=03a4c1a20accd75e85ef54d1adfccfd24d4145e1;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 0f9b94c3e..8aa2c8455 100644 --- a/qcsrc/server/command/sv_cmd.qc +++ b/qcsrc/server/command/sv_cmd.qc @@ -1033,7 +1033,6 @@ void GameCommand_setflag(int request, int argc) { case CMD_REQUEST_COMMAND: { - entity client; float accepted; @@ -1047,6 +1046,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));