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.
This commit is contained in:
James R 2022-09-11 06:25:08 -07:00
parent 5a58b3ca3a
commit 7094a064da

View file

@ -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: