OSDN Git Service

[Refactor] #38997 関数マクロcave_empty_bold*() を普通の関数に展開し、player-type * 引数を追加 / Changed...
[hengband/hengband.git] / src / spells-floor.c
index 961f615..5df07da 100644 (file)
@@ -800,7 +800,7 @@ bool earthquake(player_type *caster_ptr, POSITION cy, POSITION cx, POSITION r, M
                        x = caster_ptr->x + ddx_ddd[i];
 
                        /* Skip non-empty grids */
-                       if (!cave_empty_bold(floor_ptr, y, x)) continue;
+                       if (!is_cave_empty_bold(caster_ptr, y, x)) continue;
 
                        /* Important -- Skip "quake" grids */
                        if (map[16 + y - cy][16 + x - cx]) continue;
@@ -949,7 +949,7 @@ bool earthquake(player_type *caster_ptr, POSITION cy, POSITION cx, POSITION r, M
                                        x = xx + ddx_ddd[i];
 
                                        /* Skip non-empty grids */
-                                       if (!cave_empty_bold(floor_ptr, y, x)) continue;
+                                       if (!is_cave_empty_bold(caster_ptr, y, x)) continue;
 
                                        /* Hack -- no safety on glyph of warding */
                                        if (is_glyph_grid(&floor_ptr->grid_array[y][x])) continue;