rename IS_ROCK() macro to IS_OBSTRUCTED()
It has included trees since they were added, so give it a more fitting name.
This commit is contained in:
@@ -345,8 +345,8 @@ finish_map(
|
||||
if (lit) {
|
||||
for (i = 1; i < COLNO; i++)
|
||||
for (j = 0; j < ROWNO; j++)
|
||||
if ((!IS_ROCK(fg_typ) && levl[i][j].typ == fg_typ)
|
||||
|| (!IS_ROCK(bg_typ) && levl[i][j].typ == bg_typ)
|
||||
if ((!IS_OBSTRUCTED(fg_typ) && levl[i][j].typ == fg_typ)
|
||||
|| (!IS_OBSTRUCTED(bg_typ) && levl[i][j].typ == bg_typ)
|
||||
|| (bg_typ == TREE && levl[i][j].typ == bg_typ)
|
||||
|| (walled && IS_WALL(levl[i][j].typ)))
|
||||
levl[i][j].lit = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user