From: cloudwalk Date: Sun, 8 Nov 2020 06:25:12 +0000 (+0000) Subject: gl_rmain: Render anything RENDER_VIEWMODEL when in the void X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=00969f81f23de7332fb49cd42bce9f2b03bff676;p=xonotic%2Fdarkplaces.git 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 --- 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;