Waypoint debug shows disabled waypoints as grey with black connections

This commit is contained in:
Sally Coolatta 2021-02-01 19:12:32 -05:00
parent a84a19f247
commit 1bf8fb595a

View file

@ -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)
{