]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix cmd flood control blocking cmds after only a few cmds at startup terencehill/cmd_floodcontrol_fix
authorterencehill <piuntn@gmail.com>
Wed, 31 Jul 2024 14:57:25 +0000 (16:57 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 31 Jul 2024 14:57:25 +0000 (16:57 +0200)
qcsrc/server/client.qc

index 575d6d971816ec8bfee5b7e0e2e779af92895db0..854c1f0d07c193b3058b24fb752c637aea0b3762 100644 (file)
@@ -1115,6 +1115,9 @@ void ClientConnect(entity this)
        TRANSMUTE(Client, this);
        CS(this).version_nagtime = time + 10 + random() * 10;
 
+       entity store = IS_CLIENT(this) ? CS(this) : this;
+       store.cmd_floodtime = -999999;
+
        Send_Notification(NOTIF_ALL, NULL, MSG_INFO, INFO_JOIN_CONNECT, this.netname);
 
        bot_clientconnect(this);