mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
sbar.c (Sbar_SoloScoreboard): modified to include the map name and
skill. (patch by Steven, modified to utilize cl.mapname by OZ.) git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@28 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
1027529671
commit
cba5a07940
1 changed files with 10 additions and 11 deletions
|
@ -489,8 +489,7 @@ Sbar_SoloScoreboard -- johnfitz -- new layout
|
||||||
*/
|
*/
|
||||||
void Sbar_SoloScoreboard (void)
|
void Sbar_SoloScoreboard (void)
|
||||||
{
|
{
|
||||||
char str[80];
|
char str[256];
|
||||||
int minutes, seconds, tens, units;
|
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
sprintf (str,"Kills: %i/%i", cl.stats[STAT_MONSTERS], cl.stats[STAT_TOTALMONSTERS]);
|
sprintf (str,"Kills: %i/%i", cl.stats[STAT_MONSTERS], cl.stats[STAT_TOTALMONSTERS]);
|
||||||
|
@ -499,18 +498,18 @@ void Sbar_SoloScoreboard (void)
|
||||||
sprintf (str,"Secrets: %i/%i", cl.stats[STAT_SECRETS], cl.stats[STAT_TOTALSECRETS]);
|
sprintf (str,"Secrets: %i/%i", cl.stats[STAT_SECRETS], cl.stats[STAT_TOTALSECRETS]);
|
||||||
Sbar_DrawString (312 - strlen(str)*8, 12, str);
|
Sbar_DrawString (312 - strlen(str)*8, 12, str);
|
||||||
|
|
||||||
minutes = cl.time / 60;
|
sprintf (str,"skill %i", (int)(skill.value + 0.5));
|
||||||
seconds = cl.time - 60*minutes;
|
|
||||||
tens = seconds / 10;
|
|
||||||
units = seconds - 10*tens;
|
|
||||||
sprintf (str,"%i:%i%i", minutes, tens, units);
|
|
||||||
Sbar_DrawString (160 - strlen(str)*4, 12, str);
|
Sbar_DrawString (160 - strlen(str)*4, 12, str);
|
||||||
|
|
||||||
len = strlen (cl.levelname);
|
sprintf (str,cl.levelname);
|
||||||
|
strcat (str," (");
|
||||||
|
strncat (str,cl.mapname,250-strlen(str));
|
||||||
|
strcat (str,")");
|
||||||
|
len = strlen (str);
|
||||||
if (len > 40)
|
if (len > 40)
|
||||||
Sbar_DrawScrollString (0, 4, 320, cl.levelname);
|
Sbar_DrawScrollString (0, 4, 320, str);
|
||||||
else
|
else
|
||||||
Sbar_DrawString (160 - len*4, 4, cl.levelname);
|
Sbar_DrawString (160 - len*4, 4, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue