From 7094a064dada13691d3d9d0499dc928a6bb2fce9 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 11 Sep 2022 06:25:08 -0700 Subject: [PATCH] Do not render waypoint or spectator self hitbox Visual clutter and waypoint debugger exists. :) If you are a spectator, the hitbox exists right ontop of you and hitboxes don't render correctly if they are too close to the viewpoint. --- src/r_bbox.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/r_bbox.c b/src/r_bbox.c index 2812429a7..d5d2bf77c 100644 --- a/src/r_bbox.c +++ b/src/r_bbox.c @@ -252,6 +252,18 @@ boolean R_ThingBoundingBoxVisible(mobj_t *thing) { INT32 cvmode = cv_renderhitbox.value; + if (thing->type == MT_WAYPOINT) + { + // Waypoints debugger serves this purpose + return false; + } + + if (thing == r_viewmobj) + { + // Rendering bbox right on top causes anomalies + return false; + } + switch (cvmode) { case RENDERHITBOX_OFF: