]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud.qc
Put msgs with the same id in the same array position only when the msg is still showing
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud.qc
index 4b68d37a5a48f901cf48f26ac378a0c2ce5b00e5..81607939c61e6fa33aaa2f16b0f83f6c5816da24 100644 (file)
@@ -4352,7 +4352,7 @@ void centerprint(string strMessage)
        {
                if (j == CENTERPRINT_MAX_MSGS)
                        j = 0;
-               if (new_id && new_id == centerprint_msgID[j])
+               if (new_id && new_id == centerprint_msgID[j] && centerprint_time[j] + autocvar_hud_panel_centerprint_time >= time)
                {
                        if(centerprint_messages[j])
                                strunzone(centerprint_messages[j]);