OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Thu, 24 Jan 2019 14:38:27 +0000 (23:38 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 24 Jan 2019 14:38:27 +0000 (23:38 +0900)
12 files changed:
src/bldg.c
src/cmd-eat.c
src/cmd-quaff.c
src/cmd-read.c
src/cmd-usestaff.c
src/cmd-zaprod.c
src/cmd-zapwand.c
src/dungeon.c
src/effects.c
src/spells2.c
src/spells3.c
src/wizard2.c

index 5dab533..557f9b2 100644 (file)
@@ -3484,8 +3484,6 @@ static void building_recharge(void)
 #else
        msg_format("%^s %s recharged for %d gold.", tmp_str, ((o_ptr->number > 1) ? "were" : "was"), price);
 #endif
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        p_ptr->window |= (PW_INVEN);
@@ -3628,8 +3626,6 @@ static void building_recharge_all(void)
        /* Give feedback */
        msg_format(_("$%d で再充填しました。", "You pay %d gold."), total_cost);
        msg_print(NULL);
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        p_ptr->window |= (PW_INVEN);
index c874ec6..a729874 100644 (file)
@@ -297,8 +297,6 @@ void do_cmd_eat_food_aux(INVENTORY_IDX item)
 \r
                }\r
        }\r
-\r
-       /* Combine / Reorder the pack (later) */\r
        p_ptr->update |= (PU_COMBINE | PU_REORDER);\r
 \r
        if (!(object_is_aware(o_ptr)))\r
@@ -354,8 +352,6 @@ void do_cmd_eat_food_aux(INVENTORY_IDX item)
                {\r
                        msg_format(_("この%sにはもう魔力が残っていない。", "The %s has no charges left."), staff);\r
                        o_ptr->ident |= (IDENT_EMPTY);\r
-\r
-                       /* Combine / Reorder the pack (later) */\r
                        p_ptr->update |= (PU_COMBINE | PU_REORDER);\r
                        p_ptr->window |= (PW_INVEN);\r
 \r
index 6bc704e..7cc5cf3 100644 (file)
@@ -500,8 +500,6 @@ void do_cmd_quaff_potion_aux(INVENTORY_IDX item)
                msg_print(_("液体の一部はあなたのアゴを素通りして落ちた!", "Some of the fluid falls through your jaws!"));\r
                (void)potion_smash_effect(0, p_ptr->y, p_ptr->x, q_ptr->k_idx);\r
        }\r
-\r
-       /* Combine / Reorder the pack (later) */\r
        p_ptr->update |= (PU_COMBINE | PU_REORDER);\r
 \r
        if (!(object_is_aware(q_ptr)))\r
index 911fbd6..5648e07 100644 (file)
@@ -555,8 +555,6 @@ void do_cmd_read_scroll_aux(INVENTORY_IDX item, bool known)
                used_up=FALSE;\r
        }\r
 \r
-\r
-       /* Combine / Reorder the pack (later) */\r
        p_ptr->update |= (PU_COMBINE | PU_REORDER);\r
 \r
        if (!(object_is_aware(o_ptr)))\r
index 61bce4d..68a0ea0 100644 (file)
@@ -342,8 +342,6 @@ void do_cmd_use_staff_aux(INVENTORY_IDX item)
                if (flush_failure) flush();\r
                msg_print(_("この杖にはもう魔力が残っていない。", "The staff has no charges left."));\r
                o_ptr->ident |= (IDENT_EMPTY);\r
-\r
-               /* Combine / Reorder the pack (later) */\r
                p_ptr->update |= (PU_COMBINE | PU_REORDER);\r
                p_ptr->window |= (PW_INVEN);\r
 \r
@@ -361,8 +359,6 @@ void do_cmd_use_staff_aux(INVENTORY_IDX item)
                chg_virtue(V_CHANCE, 1);\r
                chg_virtue(V_KNOWLEDGE, -1);\r
        }\r
-\r
-       /* Combine / Reorder the pack (later) */\r
        p_ptr->update |= (PU_COMBINE | PU_REORDER);\r
 \r
        /* Tried the item */\r
index 2972d55..dd12727 100644 (file)
@@ -366,8 +366,6 @@ void do_cmd_zap_rod_aux(INVENTORY_IDX item)
 
        /* Increase the timeout by the rod kind's pval. -LM- */
        if (use_charge) o_ptr->timeout += k_ptr->pval;
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        if (!(object_is_aware(o_ptr)))
index df07b3b..844ae97 100644 (file)
@@ -398,8 +398,6 @@ void do_cmd_aim_wand_aux(INVENTORY_IDX item)
                if (flush_failure) flush();
                msg_print(_("この魔法棒にはもう魔力が残っていない。", "The wand has no charges left."));
                o_ptr->ident |= (IDENT_EMPTY);
-
-               /* Combine / Reorder the pack (later) */
                p_ptr->update |= (PU_COMBINE | PU_REORDER);
                p_ptr->window |= (PW_INVEN);
 
@@ -409,8 +407,6 @@ void do_cmd_aim_wand_aux(INVENTORY_IDX item)
        sound(SOUND_ZAP);
 
        ident = wand_effect(o_ptr->sval, dir, FALSE, FALSE);
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        if (!(object_is_aware(o_ptr)))
index 8e343ea..b70e1a9 100644 (file)
@@ -155,8 +155,6 @@ static void sense_inventory_aux(INVENTORY_IDX slot, bool heavy)
 
        /* Auto-inscription/destroy */
        autopick_alter_item(slot, destroy_feeling);
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        p_ptr->window |= (PW_INVEN | PW_EQUIP);
index 23ac4f4..cc4025d 100644 (file)
@@ -3796,8 +3796,6 @@ bool lose_all_info(void)
                o_ptr->ident &= ~(IDENT_SENSE);
        }
        p_ptr->update |= (PU_BONUS);
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
index 172b86e..bff061b 100644 (file)
@@ -4942,8 +4942,6 @@ bool psychometry(void)
 
        /* Player touches it */
        o_ptr->marked |= OM_TOUCHED;
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
index 15bcf00..dc86d69 100644 (file)
@@ -2123,8 +2123,6 @@ bool enchant(object_type *o_ptr, int n, int eflag)
 
        /* Failure */
        if (!res) return (FALSE);
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_BONUS | PU_COMBINE | PU_REORDER);
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
 
@@ -2821,8 +2819,6 @@ bool recharge(int power)
                        }
                }
        }
-
-       /* Combine / Reorder the pack (later) */
        p_ptr->update |= (PU_COMBINE | PU_REORDER);
        p_ptr->window |= (PW_INVEN);
 
index 2e62966..0d78317 100644 (file)
@@ -980,8 +980,6 @@ static void wiz_reroll_item(object_type *o_ptr)
                /* Apply changes */
                object_copy(o_ptr, q_ptr);
                p_ptr->update |= (PU_BONUS);
-
-               /* Combine / Reorder the pack (later) */
                p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
                p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_SPELL | PW_PLAYER);
@@ -1320,8 +1318,6 @@ static void do_cmd_wiz_play(void)
                object_copy(o_ptr, q_ptr);
 
                p_ptr->update |= (PU_BONUS);
-
-               /* Combine / Reorder the pack (later) */
                p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
                p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_SPELL | PW_PLAYER);