From: nothere Date: Thu, 4 Dec 2003 20:53:45 +0000 (+0000) Subject: ウィザードモードやcheat_deathでの復活時にステータス異常が回復しなかっ X-Git-Tag: v2.1.2~763 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=002781358d7a5616e17c68154eca4c78da64017e;p=hengbandforosx%2Fhengbandosx.git ウィザードモードやcheat_deathでの復活時にステータス異常が回復しなかっ たバグを修正. p_ptr->is_dead = FALSE;の後にset_*()を置く必要があった. --- diff --git a/src/dungeon.c b/src/dungeon.c index d22233f11..2f52e419c 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -7246,19 +7246,6 @@ msg_print(" p_ptr->csp = p_ptr->msp; p_ptr->csp_frac = 0; - /* Hack -- Healing */ - (void)set_blind(0); - (void)set_confused(0); - (void)set_poisoned(0); - (void)set_afraid(0); - (void)set_paralyzed(0); - (void)set_image(0); - (void)set_stun(0); - (void)set_cut(0); - - /* Hack -- Prevent starvation */ - (void)set_food(PY_FOOD_MAX - 1); - /* Hack -- cancel recall */ if (p_ptr->word_recall) { @@ -7286,15 +7273,27 @@ msg_print("Ä¥ /* Note cause of death XXX XXX XXX */ #ifdef JP -(void)strcpy(p_ptr->died_from, "»à¤Îµ½¤­"); + (void)strcpy(p_ptr->died_from, "»à¤Îµ½¤­"); #else (void)strcpy(p_ptr->died_from, "Cheating death"); #endif - /* Do not die */ p_ptr->is_dead = FALSE; + /* Hack -- Healing */ + (void)set_blind(0); + (void)set_confused(0); + (void)set_poisoned(0); + (void)set_afraid(0); + (void)set_paralyzed(0); + (void)set_image(0); + (void)set_stun(0); + (void)set_cut(0); + + /* Hack -- Prevent starvation */ + (void)set_food(PY_FOOD_MAX - 1); + dun_level = 0; p_ptr->inside_arena = FALSE; p_ptr->inside_battle = FALSE;