Let debugfinishline highlight Respawn Lines too

- Finish Lines now render with black & yellow instead of
  red & white
- Respawn Lines render with red & white
This commit is contained in:
James R 2023-03-23 19:10:36 -07:00 committed by NepDisk
parent 312c4234b0
commit 23cb7b7fa1
2 changed files with 8 additions and 3 deletions

View file

@ -423,11 +423,13 @@ boolean R_IsEmptyLine(seg_t *line, sector_t *front, sector_t *back)
boolean R_IsDebugLine(seg_t *line)
{
if (line->linedef->special == 2001) // Ring Racers: Finish Line
if (cv_debugfinishline.value)
{
if (cv_debugfinishline.value)
switch (line->linedef->special)
{
return true;
case 2001: // Ring Racers: Finish Line
case 2003: // Ring Racers: Respawn Line
return true;
}
}

View file

@ -77,6 +77,9 @@ UINT8 R_DebugLineColor(const line_t *ld)
switch (ld->special)
{
case 2001: // Ring Racers: Finish Line
return alt ? 0x1F : 0x49; // black, yellow
case 2003: // Ring Racers: Respawn Line
return alt ? 0x23 : 0x00; // red, white
}