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; extern int key_linepos;
void void
DrawStringScaled(int x, int y, char *s, float factor) DrawStringScaled(int x, int y, const char *s, float factor)
{ {
while (*s) while (*s)
{ {
@ -47,7 +47,7 @@ DrawStringScaled(int x, int y, char *s, float factor)
} }
void void
DrawAltStringScaled(int x, int y, char *s, float factor) DrawAltStringScaled(int x, int y, const char *s, float factor)
{ {
while (*s) while (*s)
{ {

View file

@ -547,7 +547,7 @@ CL_DownloadFileName(char *dest, int destlen, char *fn)
* to start a download from the server. * to start a download from the server.
*/ */
qboolean qboolean
CL_CheckOrDownloadFile(char *filename) CL_CheckOrDownloadFile(const char *filename)
{ {
FILE *fp; FILE *fp;
char name[MAX_OSPATH]; char name[MAX_OSPATH];

View file

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