mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 11:51:17 +00:00
fixed some problems
This commit is contained in:
parent
a77bb35db6
commit
705c1d0e3b
3 changed files with 6 additions and 6 deletions
|
@ -338,13 +338,13 @@ void VID_InitExtra (void)
|
|||
{
|
||||
if (modeinfo.height > 999)
|
||||
{
|
||||
snprintf(&names[nummodes][0], sizeof(&names[nummodes][0]), "%4dx%4d", modeinfo.width,
|
||||
sprintf(&names[nummodes][0], "%4dx%4d", modeinfo.width,
|
||||
modeinfo.height);
|
||||
names[nummodes][9] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(&names[nummodes][0], sizeof(&names[nummodes][0]), "%4dx%3d", modeinfo.width,
|
||||
sprintf(&names[nummodes][0], "%4dx%3d", modeinfo.width,
|
||||
modeinfo.height);
|
||||
names[nummodes][8] = 0;
|
||||
}
|
||||
|
@ -353,13 +353,13 @@ void VID_InitExtra (void)
|
|||
{
|
||||
if (modeinfo.height > 999)
|
||||
{
|
||||
snprintf(&names[nummodes][0], sizeof(&names[nummodes][0]), "%3dx%4d", modeinfo.width,
|
||||
sprintf(&names[nummodes][0], "%3dx%4d", modeinfo.width,
|
||||
modeinfo.height);
|
||||
names[nummodes][8] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(&names[nummodes][0], sizeof(&names[nummodes][0]), "%3dx%3d", modeinfo.width,
|
||||
sprintf(&names[nummodes][0], "%3dx%3d", modeinfo.width,
|
||||
modeinfo.height);
|
||||
names[nummodes][7] = 0;
|
||||
}
|
||||
|
|
|
@ -619,7 +619,7 @@ void Con_DrawConsole (int lines)
|
|||
dlbar[i++] = '\x82';
|
||||
dlbar[i] = 0;
|
||||
|
||||
snprintf(dlbar + strlen(dlbar), sizeof(dlbar + strlen(dlbar)), " %02d%%", cls.downloadpercent);
|
||||
sprintf(dlbar + strlen(dlbar), " %02d%%", cls.downloadpercent);
|
||||
|
||||
// draw it
|
||||
y = con_vislines-22 + 8;
|
||||
|
|
|
@ -438,7 +438,7 @@ void Sbar_UpdateScoreboard (void)
|
|||
{
|
||||
k = fragsort[i];
|
||||
s = &cl.scores[k];
|
||||
snprintf(&scoreboardtext[i][1], sizeof(&scoreboardtext[i][1]), "%3i %s", s->frags, s->name);
|
||||
sprintf(&scoreboardtext[i][1], "%3i %s", s->frags, s->name);
|
||||
|
||||
top = s->colors & 0xf0;
|
||||
bottom = (s->colors & 15) <<4;
|
||||
|
|
Loading…
Reference in a new issue