mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Give debugwaypoints orb and radius RF_ALWAYSONTOP
Makes the radius always visible in full.
This commit is contained in:
parent
f71ba63cd3
commit
99362bc9b2
1 changed files with 3 additions and 1 deletions
|
|
@ -578,7 +578,7 @@ static void K_DebugWaypointDrawRadius(waypoint_t *const waypoint)
|
||||||
|
|
||||||
spawnX = waypointmobj->x;
|
spawnX = waypointmobj->x;
|
||||||
spawnY = waypointmobj->y;
|
spawnY = waypointmobj->y;
|
||||||
spawnZ = waypointmobj->z + 16*mapobjectscale;
|
spawnZ = waypointmobj->z;
|
||||||
|
|
||||||
radiusOrb = P_SpawnMobj(spawnX, spawnY, spawnZ, MT_SPARK);
|
radiusOrb = P_SpawnMobj(spawnX, spawnY, spawnZ, MT_SPARK);
|
||||||
|
|
||||||
|
|
@ -588,6 +588,7 @@ static void K_DebugWaypointDrawRadius(waypoint_t *const waypoint)
|
||||||
radiusOrb->frame &= ~FF_TRANSMASK;
|
radiusOrb->frame &= ~FF_TRANSMASK;
|
||||||
radiusOrb->frame |= FF_FULLBRIGHT;
|
radiusOrb->frame |= FF_FULLBRIGHT;
|
||||||
radiusOrb->color = SKINCOLOR_PURPLE;
|
radiusOrb->color = SKINCOLOR_PURPLE;
|
||||||
|
radiusOrb->renderflags |= RF_ALWAYSONTOP;
|
||||||
|
|
||||||
radiusOrb->destscale = FixedDiv(waypointmobj->radius, spriteRadius);
|
radiusOrb->destscale = FixedDiv(waypointmobj->radius, spriteRadius);
|
||||||
P_SetScale(radiusOrb, radiusOrb->destscale);
|
P_SetScale(radiusOrb, radiusOrb->destscale);
|
||||||
|
|
@ -627,6 +628,7 @@ void K_DebugWaypointsVisualise(void)
|
||||||
|
|
||||||
debugmobj->frame &= ~FF_TRANSMASK;
|
debugmobj->frame &= ~FF_TRANSMASK;
|
||||||
debugmobj->frame |= FF_FULLBRIGHT; //FF_TRANS20
|
debugmobj->frame |= FF_FULLBRIGHT; //FF_TRANS20
|
||||||
|
debugmobj->renderflags |= RF_ALWAYSONTOP;
|
||||||
|
|
||||||
// There's a waypoint setup for this mobj! So draw that it's a valid waypoint and draw lines to its connections
|
// There's a waypoint setup for this mobj! So draw that it's a valid waypoint and draw lines to its connections
|
||||||
if (waypoint != NULL)
|
if (waypoint != NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue