From a96b8c7f5f37611ced9a3175b1d1dfaa6ef86875 Mon Sep 17 00:00:00 2001 From: deskull Date: Tue, 16 Jul 2019 20:28:52 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#39321=20do=5Fcmd=5Ftunnel=5Faux()?= =?utf8?q?=20=E3=82=92=20exe=5Ftunnel()=E3=80=80=E3=81=AB=E6=94=B9?= =?utf8?q?=E5=90=8D=EF=BC=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd-basic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd-basic.c b/src/cmd-basic.c index b8f1d7bf2..0e0941837 100644 --- a/src/cmd-basic.c +++ b/src/cmd-basic.c @@ -1083,7 +1083,7 @@ static bool do_cmd_tunnel_test(POSITION y, POSITION x) * Do not use twall anymore * Returns TRUE if repeated commands may continue */ -static bool do_cmd_tunnel_aux(player_type *creature_ptr, POSITION y, POSITION x) +static bool exe_tunnel(player_type *creature_ptr, POSITION y, POSITION x) { grid_type *g_ptr; feature_type *f_ptr, *mimic_f_ptr; @@ -1271,7 +1271,7 @@ void do_cmd_tunnel(player_type *creature_ptr) else { /* Tunnel through walls */ - more = do_cmd_tunnel_aux(creature_ptr, y, x); + more = exe_tunnel(creature_ptr, y, x); } } @@ -1884,7 +1884,7 @@ void do_cmd_alter(void) /* Tunnel through walls */ else if (have_flag(f_ptr->flags, FF_TUNNEL)) { - more = do_cmd_tunnel_aux(p_ptr, y, x); + more = exe_tunnel(p_ptr, y, x); } /* Close open doors */ -- 2.11.0