mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +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;
|
out->samples = loadmodel->lightdata + i;
|
||||||
|
|
||||||
// set the drawing flags flag
|
// 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
|
if (!strncmp(out->texinfo->texture->name,"sky",3)) // sky
|
||||||
{
|
{
|
||||||
out->flags |= (SURF_DRAWSKY | SURF_DRAWTILED);
|
out->flags |= (SURF_DRAWSKY | SURF_DRAWTILED);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue