Quick-fix for server crashing on some maps with null names/textures.

This commit is contained in:
Dabb 2000-08-08 12:47:37 +00:00
parent ea7c4363ba
commit 7234a479c8
1 changed files with 4 additions and 1 deletions

View File

@ -768,7 +768,10 @@ void Mod_LoadFaces (lump_t *l)
out->samples = loadmodel->lightdata + i;
// set the drawing flags flag
// fixme: do this right?-)
if (!out->texinfo->texture) continue;
if (!out->texinfo->texture->name) continue;
if (!strncmp(out->texinfo->texture->name,"sky",3)) // sky
{
out->flags |= (SURF_DRAWSKY | SURF_DRAWTILED);