]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
only set the prevent-join-msg timer if actually sending the message
authorRudolf Polzer <divverent@alientrap.org>
Tue, 13 Sep 2011 14:19:23 +0000 (16:19 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 13 Sep 2011 14:19:23 +0000 (16:19 +0200)
qcsrc/server/cl_client.qc

index 2fe6de0674ea49c7467012d4cbff8246d8bf9117..c212af6bc0449d61c863576040464bf3c7bb4dcd 100644 (file)
@@ -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;
+               }
        }
 }