From 6bab5df48e2f37daa367880551dd5fe36c7ba85b Mon Sep 17 00:00:00 2001 From: Deskull Date: Tue, 15 Jan 2019 21:14:09 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=20=E5=9E=8B=E3=81=AE?= =?utf8?q?=E7=BD=AE=E6=8F=9B(do=5Fcmd=5Frerate=5Faux)=20/=20Type=20replace?= =?utf8?q?ment.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/wizard2.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/wizard2.c b/src/wizard2.c index defe5fd98..4bb7f9a29 100644 --- a/src/wizard2.c +++ b/src/wizard2.c @@ -22,10 +22,10 @@ void do_cmd_rerate_aux(void) { /* Minimum hitpoints at highest level */ - int min_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 3 / 8; + HIT_POINT min_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 3 / 8; /* Maximum hitpoints at highest level */ - int max_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 5 / 8; + HIT_POINT max_value = p_ptr->hitdie + ((PY_MAX_LEVEL + 2) * (p_ptr->hitdie + 1)) * 5 / 8; int i; @@ -73,7 +73,6 @@ void do_cmd_rerate(bool display) /* Update and redraw hitpoints */ p_ptr->update |= (PU_HP); p_ptr->redraw |= (PR_HP); - p_ptr->window |= (PW_PLAYER); handle_stuff(); @@ -114,16 +113,9 @@ static bool set_gametime(void) int tmp_int = 0; char ppp[80], tmp_val[40]; - /* Prompt */ sprintf(ppp, "Dungeon Turn (0-%ld): ", (long)dungeon_turn_limit); - - /* Default */ sprintf(tmp_val, "%ld", (long)dungeon_turn); - - /* Query */ if (!get_string(ppp, tmp_val, 10)) return (FALSE); - - /* Extract */ tmp_int = atoi(tmp_val); /* Verify */ -- 2.11.0