]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
gl_rmain: Render anything RENDER_VIEWMODEL when in the void
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 Nov 2020 06:25:12 +0000 (06:25 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 8 Nov 2020 06:25:12 +0000 (06:25 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13038 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 4a33fd9fe4145d17db15ee172a590071e0adb581..2e2db42446095a53872568be42ebcd4e106f49d9 100644 (file)
@@ -4071,7 +4071,7 @@ static void R_View_UpdateEntityVisible (void)
                for (i = 0;i < r_refdef.scene.numentities;i++)
                {
                        ent = r_refdef.scene.entities[i];
-                       if (ent != &cl.viewent.render && r_refdef.viewcache.world_novis)
+                       if (r_refdef.viewcache.world_novis && !(ent->flags & RENDER_VIEWMODEL))
                        {
                                r_refdef.viewcache.entityvisible[i] = false;
                                continue;