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>
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++)