]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Stop sv_maxidle countdown messages
authorterencehill <piuntn@gmail.com>
Sun, 12 May 2013 16:18:01 +0000 (18:18 +0200)
committerterencehill <piuntn@gmail.com>
Sun, 12 May 2013 16:18:01 +0000 (18:18 +0200)
qcsrc/server/cl_client.qc

index 02839baa2d08461374ef2617e501efa41b7a14ee..a6f202e99c09f10abbe40fca71f7ab25fe2f5695 100644 (file)
@@ -2780,7 +2780,11 @@ void PlayerPostThink (void)
        {
                if (time - self.parm_idlesince < 1) // instead of (time == self.parm_idlesince) to support sv_maxidle <= 10
                {
-                       if(self.idlekick_lasttimeleft) { self.idlekick_lasttimeleft = 0; }
+                       if(self.idlekick_lasttimeleft)
+                       {
+                               self.idlekick_lasttimeleft = 0;
+                               Kill_Notification(NOTIF_ONE_ONLY, self, MSG_CENTER_CPID, CPID_IDLING);
+                       }
                }
                else
                {