mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-14 08:31:04 +00:00
Use MAX_QPATH instead of MAX_PATH in CL_ParseConfigString().
Clean up fog hacks in R_RenderView(). Remove file exists outputs in CL_CheckAndQueueDownload().
This commit is contained in:
parent
37f33ad4ad
commit
de8072c9e0
3 changed files with 3 additions and 13 deletions
|
@ -697,7 +697,7 @@ static void CL_CheckAndQueueDownload (char *path)
|
|||
}
|
||||
else
|
||||
{
|
||||
Com_Printf ("[HTTP] NOTICE: pak file (%s) specified in filelist already exists\n", gamePath);
|
||||
// Com_Printf ("[HTTP] NOTICE: pak file (%s) specified in filelist already exists\n", gamePath);
|
||||
exists = true;
|
||||
fclose (f);
|
||||
}
|
||||
|
@ -736,7 +736,7 @@ static void CL_CheckAndQueueDownload (char *path)
|
|||
}
|
||||
else
|
||||
{
|
||||
Com_Printf ("[HTTP] NOTICE: requested file (%s) already exists\n", path);
|
||||
// Com_Printf ("[HTTP] NOTICE: requested file (%s) already exists\n", path);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -534,7 +534,7 @@ void CL_ParseConfigString (void)
|
|||
cl.configstrings[CS_PAKFILE-1][MAX_QPATH-1] = 0; // null terminate end of section
|
||||
}
|
||||
else {
|
||||
if (length >= MAX_PATH)
|
||||
if (length >= MAX_QPATH)
|
||||
Com_Printf(S_COLOR_YELLOW"CL_ParseConfigString: string %d of length %d exceeds MAX_QPATH.\n", i, (int)length);
|
||||
Q_strncpyz (cl.configstrings[i], s, sizeof(cl.configstrings[i]));
|
||||
}
|
||||
|
|
|
@ -661,22 +661,12 @@ void R_RenderView (refdef_t *fd)
|
|||
|
||||
if (r_newrefdef.rdflags & RDF_NOWORLDMODEL) // options menu
|
||||
{
|
||||
/* qboolean fog_on = false;
|
||||
// Knightmare- no fogging on menu/hud models
|
||||
if (qglIsEnabled(GL_FOG)) //check if fog is enabled
|
||||
{
|
||||
fog_on = true;
|
||||
qglDisable(GL_FOG); //if so, disable it
|
||||
}*/
|
||||
R_SuspendFog ();
|
||||
|
||||
// R_DrawAllDecals();
|
||||
R_DrawAllEntities(false);
|
||||
R_DrawAllParticles();
|
||||
|
||||
// re-enable fog if it was on
|
||||
// if (fog_on)
|
||||
// qglEnable(GL_FOG);
|
||||
R_ResumeFog ();
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue