Navigation Menu

Skip to content

Commit

Permalink
Draw the viewplayer's position in the lightgrid debug display, even i…
Browse files Browse the repository at this point in the history
…f there is no sector attributed to the block at their current position.
  • Loading branch information
danij committed Feb 6, 2009
1 parent 41bf590 commit c9c1d62
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions doomsday/engine/portable/src/r_lgrid.c
Expand Up @@ -982,15 +982,16 @@ void LG_Debug(void)
blockIdx = (lgBlockHeight - 1 - y) * lgBlockWidth + x;
block = &grid[blockIdx];

if(!block->sector)
continue;

if(ddpl)
if(ddpl && vIdx == blockIdx && (blink & 16))
{
if(vIdx == blockIdx && (blink & 16))
glColor3f(1, 0, 0);
else
glColor3fv(block->rgb);
glColor3f(1, 0, 0);
}
else
{
if(!block->sector)
continue;

glColor3fv(block->rgb);
}

glVertex2f(x * lgDebugSize, y * lgDebugSize);
Expand Down

0 comments on commit c9c1d62

Please sign in to comment.