From 00969f81f23de7332fb49cd42bce9f2b03bff676 Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Sun, 8 Nov 2020 06:25:12 +0000 Subject: [PATCH] gl_rmain: Render anything RENDER_VIEWMODEL when in the void git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13038 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gl_rmain.c b/gl_rmain.c index 4a33fd9f..2e2db424 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4071,7 +4071,7 @@ static void R_View_UpdateEntityVisible (void) for (i = 0;i < r_refdef.scene.numentities;i++) { ent = r_refdef.scene.entities[i]; - if (ent != &cl.viewent.render && r_refdef.viewcache.world_novis) + if (r_refdef.viewcache.world_novis && !(ent->flags & RENDER_VIEWMODEL)) { r_refdef.viewcache.entityvisible[i] = false; continue; -- 2.39.2