Grievre's crash fix.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2004-02-15 19:56:28 +00:00
parent e43129316b
commit 79689baa83

View file

@ -419,8 +419,11 @@ R_DrawBrushModel (entity_t *e)
e->angles[0] = -e->angles[0]; // stupid quake bug e->angles[0] = -e->angles[0]; // stupid quake bug
// Build lightmap chains // Build lightmap chains
for (i = 0; i < model->nummodelsurfaces; i++, psurf++) for (i = 0; i < model->nummodelsurfaces; i++, psurf++) {
R_AddToLightmapChain(psurf); if (psurf->flags & (SURF_DRAWTURB | SURF_DRAWSKY))
continue;
R_AddToLightmapChain (psurf);
}
if (gl_mtex_active) { if (gl_mtex_active) {
R_CalcLightmaps (); R_CalcLightmaps ();