From 730c3f112de5927a291278d71349af65690cf1fb Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Sun, 21 Oct 2012 17:26:44 +1030 Subject: [PATCH] efrags: Don't add the world in glquake either Signed-off-by: Kevin Shanahan --- common/gl_refrag.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/gl_refrag.c b/common/gl_refrag.c index 23b3f04..83fc2e9 100644 --- a/common/gl_refrag.c +++ b/common/gl_refrag.c @@ -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;