From: terencehill Date: Mon, 23 May 2011 16:56:58 +0000 (+0200) Subject: Put msgs with the same id in the same array position only when the msg is still showing X-Git-Tag: xonotic-v0.5.0~223 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9f698a877c0243cb05fd2595b2635b425374a90a;p=xonotic%2Fxonotic-data.pk3dir.git Put msgs with the same id in the same array position only when the msg is still showing --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 4b68d37a5..81607939c 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -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]);