cave_type *c_ptr = &cave[y][x];
feature_type *f_ptr = &f_info[feat];
- if (character_dungeon && is_mirror_grid(c_ptr) && (d_info[dungeon_type].flags1 & DF1_DARKNESS))
- {
- c_ptr->info &= ~(CAVE_GLOW);
- if (!view_torch_grids) c_ptr->info &= ~(CAVE_MARK);
-
- /* Remove flag for mirror/glyph */
- c_ptr->info &= ~(CAVE_OBJECT);
-
- update_local_illumination(y, x);
- }
-
/* Clear mimic type */
c_ptr->mimic = 0;
if (character_dungeon)
{
+ if (is_mirror_grid(c_ptr) && (d_info[dungeon_type].flags1 & DF1_DARKNESS))
+ {
+ c_ptr->info &= ~(CAVE_GLOW);
+ if (!view_torch_grids) c_ptr->info &= ~(CAVE_MARK);
+
+ update_local_illumination(y, x);
+ }
+
+ /* Remove flag for mirror/glyph */
+ c_ptr->info &= ~(CAVE_OBJECT);
+
/* Check for change to boring grid */
if (!have_flag(f_ptr->flags, FF_REMEMBER)) c_ptr->info &= ~(CAVE_MARK);
if (!in_generate) /* Normal */
{
- /* Lose unsafety and runes/mirrors */
- c_ptr->info &= ~(CAVE_UNSAFE | CAVE_OBJECT);
+ /* Lose unsafety */
+ c_ptr->info &= ~(CAVE_UNSAFE);
/* Hack -- Notice player affect */
if (player_bold(y, x))
/* Delete objects */
delete_object(yy, xx);
- /* Clear mirror, runes flag */
- c_ptr->info &= ~CAVE_OBJECT;
-
/* Wall (or floor) type */
t = cave_have_flag_bold(yy, xx, FF_PROJECT) ? randint0(100) : 200;