]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
After the MOTD self-expired normally, when joining the game it was shown again quickl...
authorterencehill <piuntn@gmail.com>
Tue, 5 Jul 2011 23:13:59 +0000 (01:13 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 6 Jul 2011 00:46:42 +0000 (02:46 +0200)
qcsrc/client/hud.qc

index cee8ebef4f46503ee91e48aeee4ba6fe08f47f86..25a26121b83c09a49db2003436b40245ca638565 100644 (file)
@@ -4535,9 +4535,9 @@ void HUD_CenterPrint (void)
        {
                if (j == CENTERPRINT_MAX_MSGS)
                        j = 0;
-               if (centerprint_time[j] > 0 && centerprint_expire_time[j] < time)
+               if (centerprint_expire_time[j] < time)
                {
-                       if (centerprint_countdown_num[j])
+                       if (centerprint_countdown_num[j] && centerprint_time[j] > 0)
                        {
                                centerprint_countdown_num[j] = centerprint_countdown_num[j] - 1;
                                if (centerprint_countdown_num[j] == 0)