From 035ff54c9585875e37e921f89500e694cb5a8b4e Mon Sep 17 00:00:00 2001 From: Deskull Date: Sat, 26 Jan 2019 17:58:33 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E3=82=B3=E3=83=A1?= =?utf8?q?=E3=83=B3=E3=83=88=E6=95=B4=E7=90=86=E3=80=82=20/=20Refactor=20c?= =?utf8?q?omments.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd2.c | 2 -- src/shoot.c | 2 -- src/spells3.c | 7 ------- 3 files changed, 11 deletions(-) diff --git a/src/cmd2.c b/src/cmd2.c index cba6e7fa5..b65b05c07 100644 --- a/src/cmd2.c +++ b/src/cmd2.c @@ -2492,7 +2492,6 @@ bool do_cmd_throw(int mult, bool boomerang, OBJECT_IDX shuriken) if (shuriken) chance *= 2; - /* Save the old location */ prev_y = y; prev_x = x; @@ -2536,7 +2535,6 @@ bool do_cmd_throw(int mult, bool boomerang, OBJECT_IDX shuriken) Term_xtra(TERM_XTRA_DELAY, msec); } - /* Save the old location */ prev_y = y; prev_x = x; diff --git a/src/shoot.c b/src/shoot.c index 280228e41..e4045bca9 100644 --- a/src/shoot.c +++ b/src/shoot.c @@ -495,7 +495,6 @@ void exe_fire(INVENTORY_IDX item, object_type *j_ptr) sound(SOUND_SHOOT); handle_stuff(); - /* Save the old location */ prev_y = y; prev_x = x; @@ -586,7 +585,6 @@ void exe_fire(INVENTORY_IDX item, object_type *j_ptr) lite_spot(ny, nx); } - /* Save the old location */ prev_y = y; prev_x = x; diff --git a/src/spells3.c b/src/spells3.c index b619ae4c8..e269d48a5 100644 --- a/src/spells3.c +++ b/src/spells3.c @@ -51,7 +51,6 @@ bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode) /* Paranoia */ if (!m_ptr->r_idx) return (FALSE); - /* Save the old location */ oy = m_ptr->fy; ox = m_ptr->fx; @@ -164,8 +163,6 @@ void teleport_monster_to(MONSTER_IDX m_idx, POSITION ty, POSITION tx, int power, ny = m_ptr->fy; nx = m_ptr->fx; - - /* Save the old location */ oy = m_ptr->fy; ox = m_ptr->fx; @@ -374,8 +371,6 @@ bool teleport_player_aux(POSITION dis, BIT_FLAGS mode) void teleport_player(POSITION dis, BIT_FLAGS mode) { POSITION yy, xx; - - /* Save the old location */ POSITION oy = p_ptr->y; POSITION ox = p_ptr->x; @@ -418,8 +413,6 @@ void teleport_player(POSITION dis, BIT_FLAGS mode) void teleport_player_away(MONSTER_IDX m_idx, POSITION dis) { POSITION yy, xx; - - /* Save the old location */ POSITION oy = p_ptr->y; POSITION ox = p_ptr->x; -- 2.11.0