]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Engine/GL: Fix for #163 by Mario. Check for server progs since dpstable-fix-bbox-spam 68/head
authorDavid Knapp <mazecraze96@gmail.com>
Sat, 18 Jan 2020 01:21:54 +0000 (20:21 -0500)
committerDavid Knapp <mazecraze96@gmail.com>
Sat, 18 Jan 2020 14:50:54 +0000 (09:50 -0500)
viewmodelforclient is not a client field

gl_rmain.c

index cd41cacdbffeb56bb9ad74e35e18562c06c5d23e..6c051a4b2969681dfe6845cb1849935e4f020bb9 100644 (file)
@@ -7893,9 +7893,9 @@ static void R_DrawEntityBBoxes(prvm_prog_t *prog)
                if (edict->priv.server->free)
                        continue;
                // exclude the following for now, as they don't live in world coordinate space and can't be solid:
-               if (PRVM_serveredictedict(edict, tag_entity) != 0)
+               if (PRVM_gameedictedict(edict, tag_entity) != 0)
                        continue;
-               if (PRVM_serveredictedict(edict, viewmodelforclient) != 0)
+               if (prog == SVVM_prog && PRVM_serveredictedict(edict, viewmodelforclient) != 0)
                        continue;
                VectorLerp(edict->priv.server->areamins, 0.5f, edict->priv.server->areamaxs, center);
                R_MeshQueue_AddTransparent(TRANSPARENTSORT_DISTANCE, center, R_DrawEntityBBoxes_Callback, (entity_render_t *)NULL, i, (rtlight_t *)prog);