OSDN Git Service

[Refactor] #39076 冗長なコメントを削除 (/* Cancel the command */)
authordeskull <deskull@users.sourceforge.jp>
Wed, 19 Jun 2019 15:03:20 +0000 (00:03 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Wed, 19 Jun 2019 15:03:20 +0000 (00:03 +0900)
src/cmd-basic.c
src/cmd-item.c

index 1d33566..c5e35cb 100644 (file)
@@ -208,10 +208,8 @@ void do_cmd_go_up(player_type *creature_ptr)
        /* Quest up stairs */
        if (have_flag(f_ptr->flags, FF_QUEST))
        {
-               /* Cancel the command */
                if (!confirm_leave_level(creature_ptr, FALSE)) return;
        
-               
                /* Success */
                if ((creature_ptr->pseikaku == SEIKAKU_COMBAT) || (creature_ptr->inventory_list[INVEN_BOW].name1 == ART_CRIMSON))
                        msg_print(_("なんだこの階段は!", "What's this STAIRWAY!"));
@@ -258,7 +256,6 @@ void do_cmd_go_up(player_type *creature_ptr)
                go_up = confirm_leave_level(creature_ptr, FALSE);
        }
 
-       /* Cancel the command */
        if (!go_up) return;
 
        take_turn(creature_ptr, 100);
index f204f60..65f9139 100644 (file)
@@ -292,14 +292,11 @@ void do_cmd_wield(void)
        if (object_is_cursed(&p_ptr->inventory_list[slot]))
        {
                object_desc(o_name, &p_ptr->inventory_list[slot], (OD_OMIT_PREFIX | OD_NAME_ONLY));
-
 #ifdef JP
                msg_format("%s%sは呪われているようだ。", describe_use(slot) , o_name );
 #else
                msg_format("The %s you are %s appears to be cursed.", o_name, describe_use(slot));
 #endif
-
-               /* Cancel the command */
                return;
        }