efrags: Don't add the world in glquake either

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2012-10-21 17:26:44 +10:30
parent deb4578bc5
commit 730c3f112d

View File

@ -162,6 +162,15 @@ R_AddEfrags(entity_t *ent)
if (!ent->model)
return;
#ifdef NQ_HACK
if (ent == cl_entities)
return; // never add the world
#endif
#ifdef QW_HACK
if (ent == &r_worldentity)
return; // never add the world
#endif
r_addent = ent;
lastlink = &ent->efrag;