mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-04-06 23:11:23 +00:00
Quick-fix for server crashing on some maps with null names/textures.
This commit is contained in:
parent
ea7c4363ba
commit
7234a479c8
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue