From: David Knapp Date: Sat, 18 Jan 2020 01:21:54 +0000 (-0500) Subject: Engine/GL: Fix for #163 by Mario. Check for server progs since X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F68%2Fhead;p=xonotic%2Fdarkplaces.git Engine/GL: Fix for #163 by Mario. Check for server progs since viewmodelforclient is not a client field --- diff --git a/gl_rmain.c b/gl_rmain.c index cd41cacd..6c051a4b 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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);