fix warning
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1900 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ec34ee2e5e
commit
f3f02e5353
2 changed files with 4 additions and 9 deletions
engine
|
@ -1502,7 +1502,9 @@ qboolean R_CullEntityBox(entity_t *e, vec3_t modmins, vec3_t modmaxs)
|
||||||
return R_CullBox(wmin, wmax);
|
return R_CullBox(wmin, wmax);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Q3SHADERS
|
||||||
|
mfog_t *CM_FogForOrigin(vec3_t org);
|
||||||
|
#endif
|
||||||
void R_DrawGAliasModel (entity_t *e)
|
void R_DrawGAliasModel (entity_t *e)
|
||||||
{
|
{
|
||||||
extern cvar_t r_drawflat;
|
extern cvar_t r_drawflat;
|
||||||
|
@ -1847,10 +1849,6 @@ void R_DrawGAliasModel (entity_t *e)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef Q3SHADERS
|
#ifdef Q3SHADERS
|
||||||
//if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int
|
|
||||||
//timeserv thinks we need a prototype (whatever that is) ~ Moodles
|
|
||||||
#pragma warning(disable:4047)
|
|
||||||
|
|
||||||
fog = CM_FogForOrigin(currententity->origin);
|
fog = CM_FogForOrigin(currententity->origin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -549,6 +549,7 @@ void SWR_ViewChanged (vrect_t *pvrect, int lineadj, float aspect)
|
||||||
R_MarkLeaves
|
R_MarkLeaves
|
||||||
===============
|
===============
|
||||||
*/
|
*/
|
||||||
|
qbyte *SWMod_LeafPVS (model_t *model, mleaf_t *leaf, qbyte *buffer);
|
||||||
void SWR_MarkLeaves (void)
|
void SWR_MarkLeaves (void)
|
||||||
{
|
{
|
||||||
qbyte *vis;
|
qbyte *vis;
|
||||||
|
@ -620,10 +621,6 @@ void SWR_MarkLeaves (void)
|
||||||
r_visframecount++;
|
r_visframecount++;
|
||||||
r_oldviewleaf = r_viewleaf;
|
r_oldviewleaf = r_viewleaf;
|
||||||
|
|
||||||
//if they're in different files it's probably just the compiler not knowing the return type when it reaches that line so it guesses int
|
|
||||||
//timeserv thinks we need a prototype (whatever that is) ~ Moodles
|
|
||||||
#pragma warning(disable:4047)
|
|
||||||
|
|
||||||
vis = SWMod_LeafPVS (cl.worldmodel, r_viewleaf, NULL);
|
vis = SWMod_LeafPVS (cl.worldmodel, r_viewleaf, NULL);
|
||||||
|
|
||||||
for (i=0 ; i<cl.worldmodel->numleafs ; i++)
|
for (i=0 ; i<cl.worldmodel->numleafs ; i++)
|
||||||
|
|
Loading…
Reference in a new issue