From: terencehill Date: Wed, 31 Jul 2024 14:57:25 +0000 (+0200) Subject: Fix cmd flood control blocking cmds after only a few cmds at startup X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fterencehill%2Fcmd_floodcontrol_fix;p=xonotic%2Fxonotic-data.pk3dir.git Fix cmd flood control blocking cmds after only a few cmds at startup --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 575d6d971..854c1f0d0 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -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);