]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Merge PR 'Only use BoxTouchingVisibleLeafs when not using r_novis'
authorJames O'Neill <hemebond@gmail.com>
Thu, 15 Aug 2024 14:09:14 +0000 (23:09 +0900)
committerGitHub <noreply@github.com>
Thu, 15 Aug 2024 14:09:14 +0000 (00:09 +1000)
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 <bones_was_here@xonotic.au>
gl_rmain.c

index cf07e8fc23d2013737bfff5b04ab086cc41553cf..522bda3eb87f49486b9040cb177bdb4574b72545 100644 (file)
@@ -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++)