mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
debugwaypoints: cull debug mobjs outside of drawdist
This commit is contained in:
parent
35728a00e3
commit
4fd17489a5
1 changed files with 7 additions and 0 deletions
|
|
@ -650,6 +650,13 @@ void K_DebugWaypointsVisualise(void)
|
|||
// Hunt through the waypointcap so we can show all waypoint mobjs and not just ones that were able to be graphed
|
||||
for (waypointmobj = waypointcap; waypointmobj != NULL; waypointmobj = waypointmobj->tracer)
|
||||
{
|
||||
// If this waypoint is outside of draw distance, don't spawn all the debug crap because it is SLOW
|
||||
if (cv_drawdist.value != 0 &&
|
||||
R_PointToDist(waypointmobj->x, waypointmobj->y) > cv_drawdist.value * mapobjectscale)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
waypoint = K_SearchWaypointHeapForMobj(waypointmobj);
|
||||
|
||||
debugmobj = P_SpawnMobj(waypointmobj->x, waypointmobj->y, waypointmobj->z, MT_SPARK);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue