fixed some problems

This commit is contained in:
Nelson Rush 2000-01-05 00:11:02 +00:00
parent a77bb35db6
commit 705c1d0e3b
3 changed files with 6 additions and 6 deletions

View file

@ -338,13 +338,13 @@ void VID_InitExtra (void)
{ {
if (modeinfo.height > 999) 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); modeinfo.height);
names[nummodes][9] = 0; names[nummodes][9] = 0;
} }
else else
{ {
snprintf(&names[nummodes][0], sizeof(&names[nummodes][0]), "%4dx%3d", modeinfo.width, sprintf(&names[nummodes][0], "%4dx%3d", modeinfo.width,
modeinfo.height); modeinfo.height);
names[nummodes][8] = 0; names[nummodes][8] = 0;
} }
@ -353,13 +353,13 @@ void VID_InitExtra (void)
{ {
if (modeinfo.height > 999) 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); modeinfo.height);
names[nummodes][8] = 0; names[nummodes][8] = 0;
} }
else else
{ {
snprintf(&names[nummodes][0], sizeof(&names[nummodes][0]), "%3dx%3d", modeinfo.width, sprintf(&names[nummodes][0], "%3dx%3d", modeinfo.width,
modeinfo.height); modeinfo.height);
names[nummodes][7] = 0; names[nummodes][7] = 0;
} }

View file

@ -619,7 +619,7 @@ void Con_DrawConsole (int lines)
dlbar[i++] = '\x82'; dlbar[i++] = '\x82';
dlbar[i] = 0; dlbar[i] = 0;
snprintf(dlbar + strlen(dlbar), sizeof(dlbar + strlen(dlbar)), " %02d%%", cls.downloadpercent); sprintf(dlbar + strlen(dlbar), " %02d%%", cls.downloadpercent);
// draw it // draw it
y = con_vislines-22 + 8; y = con_vislines-22 + 8;

View file

@ -438,7 +438,7 @@ void Sbar_UpdateScoreboard (void)
{ {
k = fragsort[i]; k = fragsort[i];
s = &cl.scores[k]; 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; top = s->colors & 0xf0;
bottom = (s->colors & 15) <<4; bottom = (s->colors & 15) <<4;