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
This commit is contained in:
parent
953e87faaf
commit
c600bec47f
1 changed files with 4 additions and 4 deletions
|
@ -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--;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue