From: terencehill Date: Sun, 22 May 2011 21:10:30 +0000 (+0200) Subject: Give the proper name to a constant X-Git-Tag: xonotic-v0.5.0~226 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea6d33cfdae9d24a593eb2d712b099ba5f9bd421;p=xonotic%2Fxonotic-data.pk3dir.git Give the proper name to a constant --- 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