summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index c44d007c07..ae09d2ca8e 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -3532,8 +3532,10 @@ bool magic_mapping(int map_radius, int proportion, bool suppress_msg,
}
if (grid_is_opaque( grd[i + k][j + l] )
- && grd[i + k][j + l] != DNGN_CLOSED_DOOR)
+ && grd[i + k][j + l] != DNGN_CLOSED_DOOR)
+ {
empty_count--;
+ }
}
}
@@ -3544,9 +3546,9 @@ bool magic_mapping(int map_radius, int proportion, bool suppress_msg,
// Hack to give demonspawn Pandemonium mutation the ability
// to detect exits magically.
- if ((you.mutation[MUT_PANDEMONIUM] > 1
- && grd[i][j] == DNGN_EXIT_PANDEMONIUM)
- || wizard_map)
+ if (wizard_map
+ || player_mutation_level(MUT_PANDEMONIUM) > 1
+ && grd[i][j] == DNGN_EXIT_PANDEMONIUM)
{
set_terrain_seen( i, j );
}
@@ -4842,9 +4844,11 @@ void viewwindow(bool draw_it, bool do_updates)
// alter colour if flashing the characters vision
if (flash_colour && buffy[bufcount])
+ {
buffy[bufcount + 1] =
see_grid(gc.x, gc.y)?
real_colour(flash_colour) : DARKGREY;
+ }
bufcount += 2;
}