Skip to content

Commit c443fba

Browse files
authored
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 DarkPlacesEngine/DarkPlaces#188 See DarkPlacesEngine/DarkPlaces#192 Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
1 parent a94d756 commit c443fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gl_rmain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4007,7 +4007,7 @@ static void R_View_UpdateEntityVisible (void)
40074007
if (!r_drawexteriormodel.integer)
40084008
renderimask |= RENDER_EXTERIORMODEL;
40094009
memset(r_refdef.viewcache.entityvisible, 0, r_refdef.scene.numentities);
4010-
if (r_refdef.scene.worldmodel && r_refdef.scene.worldmodel->brush.BoxTouchingVisibleLeafs)
4010+
if (r_refdef.scene.worldmodel && !r_novis.integer && r_refdef.scene.worldmodel->brush.BoxTouchingVisibleLeafs)
40114011
{
40124012
// worldmodel can check visibility
40134013
for (i = 0;i < r_refdef.scene.numentities;i++)

0 commit comments

Comments
 (0)