]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
lazy variable declarations strike again
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Mar 2005 11:42:40 +0000 (11:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 6 Mar 2005 11:42:40 +0000 (11:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5033 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index 31d4a4f89a42f79bf2d4ae33c21eba87fb2d05e0..98b23f0a6b82848d041404b3bb014e450ea8b448 100644 (file)
@@ -1748,6 +1748,11 @@ void R_Q3BSP_DrawFace_TransparentCallback(const void *voident, int facenumber)
 void R_Q3BSP_DrawFaceList(entity_render_t *ent, q3mtexture_t *t, int texturenumfaces, q3msurface_t **texturefacelist)
 {
        int i, texturefaceindex;
+       qboolean dolightmap;
+       qboolean dobase;
+       qboolean doambient;
+       qboolean doglow;
+       qboolean dofog;
        rmeshstate_t m;
        if (!texturenumfaces)
                return;
@@ -1844,11 +1849,11 @@ void R_Q3BSP_DrawFaceList(entity_render_t *ent, q3mtexture_t *t, int texturenumf
                return;
        }
        // anything else is a typical wall, lightmap * texture + glow
-       qboolean dolightmap = (ent->flags & RENDER_LIGHT);
-       qboolean dobase = true;
-       qboolean doambient = r_ambient.value > 0;
-       qboolean doglow = t->skin.glow != NULL;
-       qboolean dofog = fogenabled;
+       dolightmap = (ent->flags & RENDER_LIGHT);
+       dobase = true;
+       doambient = r_ambient.value > 0;
+       doglow = t->skin.glow != NULL;
+       dofog = fogenabled;
        if (t->textureflags & Q3TEXTUREFLAG_TWOSIDED)
                qglDisable(GL_CULL_FACE);
        if (!dolightmap && dobase)