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
parent 92bf2d0989
commit 4934263871
2 changed files with 8 additions and 3 deletions

View file

@ -425,11 +425,13 @@ boolean R_IsEmptyLine(seg_t *line, sector_t *front, sector_t *back)
boolean R_IsDebugLine(seg_t *line) 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

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