From 5abdc282afdceb8a39af130681ca240ffb6eff40 Mon Sep 17 00:00:00 2001 From: Deskull Date: Sun, 13 Jan 2019 13:21:25 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E5=9E=8B=E3=81=AE?= =?utf8?q?=E7=BD=AE=E6=8F=9B=E3=80=82=20/=20Type=20replacement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/xtra2.c | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/src/xtra2.c b/src/xtra2.c index 624aba76d..68f1de797 100644 --- a/src/xtra2.c +++ b/src/xtra2.c @@ -3176,9 +3176,7 @@ bool target_set(BIT_FLAGS mode) char query; char info[80]; char same_key; - cave_type *c_ptr; - TERM_LEN wid, hgt; get_screen_size(&wid, &hgt); @@ -3186,10 +3184,6 @@ bool target_set(BIT_FLAGS mode) /* Cancel target */ target_who = 0; - - /* Cancel tracking */ - /* health_track(0); */ - if (rogue_like_commands) { same_key = 'x'; @@ -3248,9 +3242,6 @@ bool target_set(BIT_FLAGS mode) if(query)break; } - /* Cancel tracking */ - /* health_track(0); */ - /* Assume no "direction" */ d = 0; @@ -3315,11 +3306,8 @@ bool target_set(BIT_FLAGS mode) { /* Recenter the map around the player */ verify_panel(); - p_ptr->update |= (PU_MONSTERS); - p_ptr->redraw |= (PR_MAP); - p_ptr->window |= (PW_OVERHEAD); handle_stuff(); @@ -3396,8 +3384,8 @@ bool target_set(BIT_FLAGS mode) /* Nothing interesting */ else { - int dx = ddx[d]; - int dy = ddy[d]; + POSITION dx = ddx[d]; + POSITION dy = ddy[d]; /* Restore previous position */ panel_row_min = y2; @@ -3405,9 +3393,7 @@ bool target_set(BIT_FLAGS mode) panel_bounds_center(); p_ptr->update |= (PU_MONSTERS); - p_ptr->redraw |= (PR_MAP); - p_ptr->window |= (PW_OVERHEAD); handle_stuff(); @@ -3482,9 +3468,6 @@ bool target_set(BIT_FLAGS mode) /* Describe and Prompt (enable "TARGET_LOOK") */ while ((query = target_set_aux(y, x, mode | TARGET_LOOK, info)) == 0); - /* Cancel tracking */ - /* health_track(0); */ - /* Assume no direction */ d = 0; @@ -3519,11 +3502,8 @@ bool target_set(BIT_FLAGS mode) { /* Recenter the map around the player */ verify_panel(); - p_ptr->update |= (PU_MONSTERS); - p_ptr->redraw |= (PR_MAP); - p_ptr->window |= (PW_OVERHEAD); handle_stuff(); @@ -3585,8 +3565,8 @@ bool target_set(BIT_FLAGS mode) /* Handle "direction" */ if (d) { - int dx = ddx[d]; - int dy = ddy[d]; + POSITION dx = ddx[d]; + POSITION dy = ddy[d]; /* XTRA HACK MOVEFAST */ if (move_fast) @@ -3641,11 +3621,8 @@ bool target_set(BIT_FLAGS mode) /* Recenter the map around the player */ verify_panel(); - p_ptr->update |= (PU_MONSTERS); - p_ptr->redraw |= (PR_MAP); - p_ptr->window |= (PW_OVERHEAD); handle_stuff(); -- 2.11.0