From c600bec47f57ec97766477d090bed427e685293c Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 4 Oct 2005 18:08:30 +0000 Subject: [PATCH] Small tweek, seems to make centerprints a bit better. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1413 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/client/cl_screen.c b/engine/client/cl_screen.c index 26f03376a..e4ff08684 100644 --- a/engine/client/cl_screen.c +++ b/engine/client/cl_screen.c @@ -167,7 +167,7 @@ CENTER PRINTING =============================================================================== */ -char scr_centerstring[MAX_SPLITS][1024]; +qbyte scr_centerstring[MAX_SPLITS][1024]; float scr_centertime_start[MAX_SPLITS]; // for slow victory printing float scr_centertime_off[MAX_SPLITS]; int scr_center_lines[MAX_SPLITS]; @@ -240,7 +240,7 @@ void SCR_EraseCenterString (void) } } -void SCR_CenterPrintBreaks(char *start, int *lines, int *maxlength) +void SCR_CenterPrintBreaks(qbyte *start, int *lines, int *maxlength) { int l; *lines = 0; @@ -258,7 +258,7 @@ void SCR_CenterPrintBreaks(char *start, int *lines, int *maxlength) l--; } } - + (*lines)++; if (*maxlength < l) *maxlength = l; @@ -336,7 +336,7 @@ void SCR_DrawCenterString (int pnum) break; if (l == 40) { - while(l > 0 && start[l-1]>' ') + while(l > 0 && start[l-1]>' ' && start[l-1] != ' '+128) { l--; }