From ea6d33cfdae9d24a593eb2d712b099ba5f9bd421 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 22 May 2011 23:10:30 +0200 Subject: [PATCH] Give the proper name to a constant --- qcsrc/client/hud.qc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index f6177753d..47ee55818 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -142,12 +142,12 @@ float stringwidth_nocolors(string s, vector theSize) return stringwidth(s, FALSE, theSize); } -#define CENTERPRINT_MAX_LINES 10 +#define CENTERPRINT_MAX_MSGS 10 float cpm_index; -string centerprint_messages[CENTERPRINT_MAX_LINES]; -float centerprint_msgID[CENTERPRINT_MAX_LINES]; -float centerprint_width[CENTERPRINT_MAX_LINES]; -float centerprint_time[CENTERPRINT_MAX_LINES]; +string centerprint_messages[CENTERPRINT_MAX_MSGS]; +float centerprint_msgID[CENTERPRINT_MAX_MSGS]; +float centerprint_width[CENTERPRINT_MAX_MSGS]; +float centerprint_time[CENTERPRINT_MAX_MSGS]; float centerprint_expire; float centerprint_num; vector centerprint_fontsize; @@ -179,9 +179,9 @@ void centerprint(string strMessage) float new_id = get_CPID(strMessage); - for (i=0, j=cpm_index; i= CENTERPRINT_MAX_LINES) + if(i >= CENTERPRINT_MAX_MSGS) break; } } @@ -318,9 +318,9 @@ void HUD_DrawCenterPrint (void) pos = centerprint_start; fade = min(autocvar_scr_centertime/8, 0.25); - for (i=0, j=cpm_index; i