mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-03 06:20:57 +00:00
* console.c, sbar.c: fixed a few format string issues.
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@337 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
4251b8dc1e
commit
7aa88b97a4
2 changed files with 8 additions and 8 deletions
|
@ -682,9 +682,9 @@ void Con_LogCenterPrint (const char *str)
|
||||||
|
|
||||||
if (con_logcenterprint.value)
|
if (con_logcenterprint.value)
|
||||||
{
|
{
|
||||||
Con_Printf (Con_Quakebar(40));
|
Con_Printf ("%s", Con_Quakebar(40));
|
||||||
Con_CenterPrintf (40, "%s\n", str);
|
Con_CenterPrintf (40, "%s\n", str);
|
||||||
Con_Printf (Con_Quakebar(40));
|
Con_Printf ("%s", Con_Quakebar(40));
|
||||||
Con_ClearNotify ();
|
Con_ClearNotify ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1222,9 +1222,9 @@ void Con_NotifyBox (const char *text)
|
||||||
|
|
||||||
// during startup for sound / cd warnings
|
// during startup for sound / cd warnings
|
||||||
Con_Printf ("\n\n%s", Con_Quakebar(40)); //johnfitz
|
Con_Printf ("\n\n%s", Con_Quakebar(40)); //johnfitz
|
||||||
Con_Printf (text);
|
Con_Printf ("%s", text);
|
||||||
Con_Printf ("Press a key.\n");
|
Con_Printf ("Press a key.\n");
|
||||||
Con_Printf (Con_Quakebar(40)); //johnfitz
|
Con_Printf ("%s", Con_Quakebar(40)); //johnfitz
|
||||||
|
|
||||||
key_count = -2; // wait for a key down and up
|
key_count = -2; // wait for a key down and up
|
||||||
IN_Deactivate(vid.type == MODE_WINDOWED);
|
IN_Deactivate(vid.type == MODE_WINDOWED);
|
||||||
|
|
|
@ -504,10 +504,10 @@ void Sbar_SoloScoreboard (void)
|
||||||
sprintf (str,"skill %i", (int)(skill.value + 0.5));
|
sprintf (str,"skill %i", (int)(skill.value + 0.5));
|
||||||
Sbar_DrawString (160 - strlen(str)*4, 12, str);
|
Sbar_DrawString (160 - strlen(str)*4, 12, str);
|
||||||
|
|
||||||
sprintf (str,cl.levelname);
|
strcpy (str,cl.levelname);
|
||||||
strcat (str," (");
|
strcat (str," (");
|
||||||
strncat (str,cl.mapname,250-strlen(str));
|
strncat(str,cl.mapname,250-strlen(str));
|
||||||
strcat (str,")");
|
strcat (str,")");
|
||||||
len = strlen (str);
|
len = strlen (str);
|
||||||
if (len > 40)
|
if (len > 40)
|
||||||
Sbar_DrawScrollString (0, 4, 320, str);
|
Sbar_DrawScrollString (0, 4, 320, str);
|
||||||
|
|
Loading…
Reference in a new issue