From f95f5317be24fc6ad552a9b2c05c27e741825640 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Fri, 17 Jan 2020 20:21:54 -0500 Subject: [PATCH] Engine/GL: Fix for #163 by Mario. Check for server progs since viewmodelforclient is not a client field --- gl_rmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.2