From 9e071cad0148e9db28fa546b865cd5c75f141098 Mon Sep 17 00:00:00 2001 From: deskull Date: Thu, 2 Jan 2020 19:55:28 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#38997=20cave=5Fset=5Ffeat()=20=E5=86=85?= =?utf8?q?=E5=A4=89=E6=95=B0=E5=8F=82=E7=85=A7=E4=BF=AE=E6=AD=A3=EF=BC=8E?= =?utf8?q?=20/=20Fix=20variable=20references=20in=20cave=5Fset=5Ffeat().?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/floor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/floor.c b/src/floor.c index b0615970c..686298cd7 100644 --- a/src/floor.c +++ b/src/floor.c @@ -668,7 +668,7 @@ void cave_set_feat(floor_type *floor_ptr, POSITION y, POSITION x, FEAT_IDX feat) g_ptr->feat = feat; /* Hack -- glow the GLOW terrain */ - if (have_flag(f_ptr->flags, FF_GLOW) && !(d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) + if (have_flag(f_ptr->flags, FF_GLOW) && !(d_info[floor_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) { DIRECTION i; POSITION yy, xx; @@ -697,7 +697,7 @@ void cave_set_feat(floor_type *floor_ptr, POSITION y, POSITION x, FEAT_IDX feat) /* Remove flag for mirror/glyph */ g_ptr->info &= ~(CAVE_OBJECT); - if (old_mirror && (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) + if (old_mirror && (d_info[floor_ptr->dungeon_idx].flags1 & DF1_DARKNESS)) { g_ptr->info &= ~(CAVE_GLOW); if (!view_torch_grids) g_ptr->info &= ~(CAVE_MARK); -- 2.11.0