From f3a8296229fdb891d2c64874ab2b1ee0347394a0 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 23 Jun 2011 19:32:55 +0200 Subject: [PATCH] Min value 1 as default msg duration --- qcsrc/client/hud.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 9f4f12160..26d306f9a 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4364,7 +4364,7 @@ void centerprint_generic(float new_id, string strMessage, float duration, float return; if(duration == 0) - duration = autocvar_hud_panel_centerprint_time; + duration = max(1, autocvar_hud_panel_centerprint_time); for (i=0, j=cpm_index; i