OSDN Git Service

アイテムを無力化しても銘を維持するように修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 9 May 2003 04:44:17 +0000 (04:44 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 9 May 2003 04:44:17 +0000 (04:44 +0000)
src/spells3.c

index c3dd8a4..900094c 100644 (file)
@@ -2707,30 +2707,32 @@ s = "
 
        /* Oops */
 #ifdef JP
-msg_print("¤Þ¤Ð¤æ¤¤Á®¸÷¤¬Áö¤Ã¤¿¡ª");
+       msg_print("¤Þ¤Ð¤æ¤¤Á®¸÷¤¬Áö¤Ã¤¿¡ª");
 #else
        msg_print("There is a bright flash of light!");
 #endif
-{
-  byte iy = o_ptr->iy;                /* Y-position on map, or zero */
-  byte ix = o_ptr->ix;                /* X-position on map, or zero */
-  s16b next_o_idx= o_ptr->next_o_idx; /* Next object in stack (if any) */
-  byte marked=o_ptr->marked;          /* Object is marked */
-  s16b weight = (o_ptr->number*o_ptr->weight);
-
-   /* Wipe it clean */
-   object_prep(o_ptr, o_ptr->k_idx);
-
-  o_ptr->iy=iy;
-  o_ptr->ix=ix;
-  o_ptr->next_o_idx=next_o_idx;
-  o_ptr->marked=marked;
-  if (item >= 0) p_ptr->total_weight += (o_ptr->weight - weight);
-}
+       {
+               byte iy = o_ptr->iy;                 /* Y-position on map, or zero */
+               byte ix = o_ptr->ix;                 /* X-position on map, or zero */
+               s16b next_o_idx = o_ptr->next_o_idx; /* Next object in stack (if any) */
+               byte marked = o_ptr->marked;         /* Object is marked */
+               s16b weight = o_ptr->number * o_ptr->weight;
+               u16b inscription = o_ptr->inscription;
+
+               /* Wipe it clean */
+               object_prep(o_ptr, o_ptr->k_idx);
+
+               o_ptr->iy = iy;
+               o_ptr->ix = ix;
+               o_ptr->next_o_idx = next_o_idx;
+               o_ptr->marked = marked;
+               o_ptr->inscription = inscription;
+               if (item >= 0) p_ptr->total_weight += (o_ptr->weight - weight);
+       }
        calc_android_exp();
 
        /* Something happened */
-       return (TRUE);
+       return TRUE;
 }