diff --git a/src/client/cl_console.c b/src/client/cl_console.c index 827ad6db..db449a32 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -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) { diff --git a/src/client/cl_download.c b/src/client/cl_download.c index a95fbdb3..24d0551a 100644 --- a/src/client/cl_download.c +++ b/src/client/cl_download.c @@ -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); diff --git a/src/client/header/client.h b/src/client/header/client.h index 9f57d3d5..fdcc2bd8 100644 --- a/src/client/header/client.h +++ b/src/client/header/client.h @@ -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);