From: James O'Neill Date: Thu, 15 Aug 2024 14:09:14 +0000 (+0900) Subject: Merge PR 'Only use BoxTouchingVisibleLeafs when not using r_novis' X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c443fbad631c731d52ccfae9df928856dbb34b21;p=xonotic%2Fdarkplaces.git Merge PR 'Only use BoxTouchingVisibleLeafs when not using r_novis' Updates the entity visibility check in `R_View_UpdateEntityVisible` so that with `r_novis 1` entities are rendered when the player is outside of the level. Resolves https://github.com/DarkPlacesEngine/DarkPlaces/issues/188 See https://github.com/DarkPlacesEngine/DarkPlaces/pull/192 Signed-off-by: bones_was_here --- diff --git a/gl_rmain.c b/gl_rmain.c index cf07e8fc..522bda3e 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -4007,7 +4007,7 @@ static void R_View_UpdateEntityVisible (void) if (!r_drawexteriormodel.integer) renderimask |= RENDER_EXTERIORMODEL; memset(r_refdef.viewcache.entityvisible, 0, r_refdef.scene.numentities); - if (r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.BoxTouchingVisibleLeafs) + if (r_refdef.scene.worldmodel && !r_novis.integer && r_refdef.scene.worldmodel->brush.BoxTouchingVisibleLeafs) { // worldmodel can check visibility for (i = 0;i < r_refdef.scene.numentities;i++)