OSDN Git Service

[Refactor] #39321 do_cmd_close_aux() を exe_close() に改名.
authordeskull <deskull@users.sourceforge.jp>
Fri, 26 Jul 2019 11:10:02 +0000 (20:10 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Fri, 26 Jul 2019 11:10:02 +0000 (20:10 +0900)
src/cmd-basic.c

index 2b277b9..1f5dc7c 100644 (file)
@@ -915,7 +915,7 @@ void do_cmd_open(player_type *creature_ptr)
  * Assume there is no monster blocking the destination
  * Returns TRUE if repeated commands may continue
  */
-static bool do_cmd_close_aux(player_type *creature_ptr, POSITION y, POSITION x)
+static bool exe_close(player_type *creature_ptr, POSITION y, POSITION x)
 {
        grid_type *g_ptr = &current_floor_ptr->grid_array[y][x];
        FEAT_IDX old_feat = g_ptr->feat;
@@ -1032,7 +1032,7 @@ void do_cmd_close(player_type *creature_ptr)
                else
                {
                        /* Close the door */
-                       more = do_cmd_close_aux(creature_ptr, y, x);
+                       more = exe_close(creature_ptr, y, x);
                }
        }
 
@@ -1891,7 +1891,7 @@ void do_cmd_alter(void)
                /* Close open doors */
                else if (have_flag(f_ptr->flags, FF_CLOSE))
                {
-                       more = do_cmd_close_aux(p_ptr, y, x);
+                       more = exe_close(p_ptr, y, x);
                }
 
                /* Disarm traps */