OSDN Git Service

[Refactor] #38997 cave_perma_bold() に floor_type * 引数を追加. / Add floor_type * argument...
authordeskull <deskull@users.sourceforge.jp>
Sat, 28 Dec 2019 13:23:45 +0000 (22:23 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 28 Dec 2019 13:24:24 +0000 (22:24 +0900)
src/floor.h
src/quest.c

index 7df7a78..30b587b 100644 (file)
@@ -299,8 +299,8 @@ extern floor_type floor_info;
  *
  * Line 1 -- permanent flag
  */
-#define cave_perma_bold(Y,X) \
-       (cave_have_flag_bold(p_ptr->current_floor_ptr, (Y), (X), FF_PERMANENT))
+#define cave_perma_bold(F,Y,X) \
+       (cave_have_flag_bold((F), (Y), (X), FF_PERMANENT))
 
 
 /*
index 256450e..e7cdae5 100644 (file)
@@ -283,7 +283,7 @@ void check_quest_completion(monster_type *m_ptr)
                POSITION ny, nx;
 
                /* Stagger around */
-               while (cave_perma_bold(y, x) || p_ptr->current_floor_ptr->grid_array[y][x].o_idx || (p_ptr->current_floor_ptr->grid_array[y][x].info & CAVE_OBJECT))
+               while (cave_perma_bold(p_ptr->current_floor_ptr, y, x) || p_ptr->current_floor_ptr->grid_array[y][x].o_idx || (p_ptr->current_floor_ptr->grid_array[y][x].info & CAVE_OBJECT))
                {
                        /* Pick a location */
                        scatter(&ny, &nx, y, x, 1, 0);