X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=src%2Fspells2.c;h=e53f27519c7fb68708adfc9a63881bb983be246e;hb=ad951098494c9de50a330832bbd93a3e508989a8;hp=152609812ab0f8bc899b885499a91f15f70f5578;hpb=48ec65f44f39becf82910465e81a2a8e9e32773f;p=hengband%2Fhengband.git diff --git a/src/spells2.c b/src/spells2.c index 152609812..e53f27519 100644 --- a/src/spells2.c +++ b/src/spells2.c @@ -45,9 +45,9 @@ static bool detect_feat_flag(POSITION range, int flag, bool known) if (d_info[p_ptr->dungeon_idx].flags1 & DF1_DARKNESS) range /= 3; /* Scan the current panel */ - for (y = 1; y < cur_hgt - 1; y++) + for (y = 1; y < current_floor_ptr->height - 1; y++) { - for (x = 1; x <= cur_wid - 1; x++) + for (x = 1; x <= current_floor_ptr->width - 1; x++) { int dist = distance(p_ptr->y, p_ptr->x, y, x); if (dist > range) continue; @@ -3864,9 +3864,9 @@ void remove_all_mirrors(bool explode) { POSITION x, y; - for (x = 0; x < cur_wid; x++) + for (x = 0; x < current_floor_ptr->width; x++) { - for (y = 0; y < cur_hgt; y++) + for (y = 0; y < current_floor_ptr->height; y++) { if (is_mirror_grid(¤t_floor_ptr->grid_array[y][x])) {