From: Rudolf Polzer Date: Tue, 13 Sep 2011 14:19:23 +0000 (+0200) Subject: only set the prevent-join-msg timer if actually sending the message X-Git-Tag: xonotic-v0.6.0~40^2~141^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=62f6c74f846c72e0155315a2da438027da7f0625;p=xonotic%2Fxonotic-data.pk3dir.git only set the prevent-join-msg timer if actually sending the message --- diff --git a/qcsrc/server/cl_client.qc b/qcsrc/server/cl_client.qc index 2fe6de067..c212af6bc 100644 --- a/qcsrc/server/cl_client.qc +++ b/qcsrc/server/cl_client.qc @@ -2500,8 +2500,10 @@ void LeaveSpectatorMode() else { //player may not join because of g_maxplayers is set if (time - self.prevent_join_msgtime > 2) + { Send_CSQC_Centerprint_Generic(self, CPID_PREVENT_JOIN, PREVENT_JOIN_TEXT, 0, 0); - self.prevent_join_msgtime = time; + self.prevent_join_msgtime = time; + } } }