mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Waypoint debug shows disabled waypoints as grey with black connections
This commit is contained in:
parent
a84a19f247
commit
1bf8fb595a
1 changed files with 12 additions and 2 deletions
|
|
@ -447,7 +447,12 @@ static void K_DebugWaypointsSpawnLine(waypoint_t *const waypoint1, waypoint_t *c
|
|||
I_Assert(waypoint2->mobj != NULL);
|
||||
I_Assert(cv_kartdebugwaypoints.value != 0);
|
||||
|
||||
linkcolour = K_GetWaypointID(waypoint1)%linkcolourssize;
|
||||
linkcolour = linkcolours[K_GetWaypointID(waypoint1) % linkcolourssize];
|
||||
|
||||
if (!K_GetWaypointIsEnabled(waypoint2))
|
||||
{
|
||||
linkcolour = SKINCOLOR_BLACK;
|
||||
}
|
||||
|
||||
waypointmobj1 = waypoint1->mobj;
|
||||
waypointmobj2 = waypoint2->mobj;
|
||||
|
|
@ -474,7 +479,7 @@ static void K_DebugWaypointsSpawnLine(waypoint_t *const waypoint1, waypoint_t *c
|
|||
spawnedmobj->state->nextstate = S_NULL;
|
||||
spawnedmobj->state->tics = 1;
|
||||
spawnedmobj->frame = spawnedmobj->frame & ~FF_TRANSMASK;
|
||||
spawnedmobj->color = linkcolours[linkcolour];
|
||||
spawnedmobj->color = linkcolour;
|
||||
spawnedmobj->scale = FixedMul(spawnedmobj->scale, FixedMul(FRACUNIT/4, FixedDiv((15 - ((leveltime + n) % 16))*FRACUNIT, 15*FRACUNIT)));
|
||||
}
|
||||
|
||||
|
|
@ -586,6 +591,11 @@ void K_DebugWaypointsVisualise(void)
|
|||
debugmobj->color = SKINCOLOR_BLUE;
|
||||
}
|
||||
|
||||
if (!K_GetWaypointIsEnabled(waypoint))
|
||||
{
|
||||
debugmobj->color = SKINCOLOR_GREY;
|
||||
}
|
||||
|
||||
// Valid waypoint, so draw lines of SPARKLES to its next or previous waypoints
|
||||
if (cv_kartdebugwaypoints.value == 1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue