OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 29 Dec 2018 09:44:41 +0000 (18:44 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 29 Dec 2018 09:44:41 +0000 (18:44 +0900)
src/cmd-eat.c
src/init1.c
src/object2.c
src/wizard2.c

index f1653fb..4358cc6 100644 (file)
@@ -440,8 +440,6 @@ void do_cmd_eat_food_aux(INVENTORY_IDX item)
                                object_type *q_ptr = &forge;\r
 \r
                                msg_print(_("食べ物がアゴを素通りして落ちた!", "The food falls through your jaws!"));\r
-\r
-                               /* Create the item */\r
                                object_prep(q_ptr, lookup_kind(o_ptr->tval, o_ptr->sval));\r
 \r
                                /* Drop the object from heaven */\r
index 4f3f150..98d98e1 100644 (file)
@@ -4112,8 +4112,6 @@ static errr process_dungeon_file_aux(char *buf, int ymin, int xmin, int ymax, in
                        else if (object_index)
                        {
                                object_type *o_ptr = &object_type_body;
-
-                               /* Create the item */
                                object_prep(o_ptr, object_index);
 
                                if (o_ptr->tval == TV_GOLD)
index a45f57f..868da75 100644 (file)
@@ -4433,8 +4433,6 @@ void apply_magic(object_type *o_ptr, DEPTH lev, BIT_FLAGS mode)
                return;
        }
 
-
-       /* Apply magic */
        switch (o_ptr->tval)
        {
                case TV_DIGGING:
index 2f459c8..aaddbfc 100644 (file)
@@ -1413,11 +1413,8 @@ static void wiz_create_item(void)
                }
        }
        q_ptr = &forge;
-
-       /* Create the item */
        object_prep(q_ptr, k_idx);
 
-       /* Apply magic */
        apply_magic(q_ptr, dun_level, AM_NO_FIXED_ART);
 
        /* Drop the object from heaven */
@@ -1485,8 +1482,6 @@ static void do_cmd_wiz_jump(void)
 
        /* Paranoia */
        if (command_arg < d_info[dungeon_type].mindepth) command_arg = 0;
-
-       /* Paranoia */
        if (command_arg > d_info[dungeon_type].maxdepth) command_arg = (COMMAND_ARG)d_info[dungeon_type].maxdepth;
 
        /* Accept request */
@@ -1531,7 +1526,7 @@ static void do_cmd_wiz_jump(void)
  */
 static void do_cmd_wiz_learn(void)
 {
-       IDX i;
+       KIND_OBJECT_IDX i;
 
        object_type forge;
        object_type *q_ptr;
@@ -1545,11 +1540,7 @@ static void do_cmd_wiz_learn(void)
                if (k_ptr->level <= command_arg)
                {
                        q_ptr = &forge;
-
-                       /* Prepare object */
                        object_prep(q_ptr, i);
-
-                       /* Awareness */
                        object_aware(q_ptr);
                }
        }
@@ -1611,7 +1602,6 @@ static void do_cmd_wiz_zap(void)
 {
        MONSTER_IDX i;
 
-
        /* Genocide everyone nearby */
        for (i = 1; i < m_max; i++)
        {