From c443fbad631c731d52ccfae9df928856dbb34b21 Mon Sep 17 00:00:00 2001 From: James O'Neill Date: Thu, 15 Aug 2024 23:09:14 +0900 Subject: [PATCH] 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 --- gl_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- 2.39.2