DrawAltString const fix

This commit is contained in:
Denis Pauk 2023-09-22 01:09:07 +03:00
parent ff70128bb9
commit 97967c37c1
3 changed files with 10 additions and 10 deletions

View File

@ -36,7 +36,7 @@ extern int edit_line;
extern int key_linepos;
void
DrawStringScaled(int x, int y, char *s, float factor)
DrawStringScaled(int x, int y, const char *s, float factor)
{
while (*s)
{
@ -47,7 +47,7 @@ DrawStringScaled(int x, int y, char *s, float factor)
}
void
DrawAltStringScaled(int x, int y, char *s, float factor)
DrawAltStringScaled(int x, int y, const char *s, float factor)
{
while (*s)
{

View File

@ -292,7 +292,7 @@ CL_RequestNextDownload(void)
precache_check = CS_PLAYERSKINS;
}
/* skins are special, since a player has three
/* skins are special, since a player has three
things to download: model, weapon model and
skin so precache_check is now *3 */
if ((precache_check >= CS_PLAYERSKINS) &&
@ -547,7 +547,7 @@ CL_DownloadFileName(char *dest, int destlen, char *fn)
* to start a download from the server.
*/
qboolean
CL_CheckOrDownloadFile(char *filename)
CL_CheckOrDownloadFile(const char *filename)
{
FILE *fp;
char name[MAX_OSPATH];
@ -624,7 +624,7 @@ CL_CheckOrDownloadFile(char *filename)
COM_StripExtension(cls.downloadname, cls.downloadtempname);
strcat(cls.downloadtempname, ".tmp");
/* check to see if we already have a tmp for this
/* check to see if we already have a tmp for this
file, if so, try to resume and open the file if
not opened yet */
CL_DownloadFileName(name, sizeof(name), cls.downloadtempname);

View File

@ -338,11 +338,11 @@ extern sizebuf_t net_message;
extern qboolean paused_at_load;
void DrawString (int x, int y, char *s);
void DrawStringScaled(int x, int y, char *s, float factor);
void DrawAltString (int x, int y, char *s); /* toggle high bit */
void DrawAltStringScaled(int x, int y, char *s, float factor);
qboolean CL_CheckOrDownloadFile (char *filename);
void DrawString (int x, int y, const char *s);
void DrawStringScaled(int x, int y, const char *s, float factor);
void DrawAltString (int x, int y, const char *s); /* toggle high bit */
void DrawAltStringScaled(int x, int y, const char *s, float factor);
qboolean CL_CheckOrDownloadFile (const char *filename);
void CL_AddNetgraph (void);