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=ffc91e19f16a512f4cb49d981e3e430182cc835d;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);