mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
5a58b3ca3a
commit
7094a064da
1 changed files with 12 additions and 0 deletions
12
src/r_bbox.c
12
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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue