OSDN Git Service

ウィザードモードやcheat_deathでの復活時にステータス異常が回復しなかっ
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 4 Dec 2003 20:53:45 +0000 (20:53 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 4 Dec 2003 20:53:45 +0000 (20:53 +0000)
たバグを修正. p_ptr->is_dead = FALSE;の後にset_*()を置く必要があった.

src/dungeon.c

index d22233f..2f52e41 100644 (file)
@@ -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;