OSDN Git Service

[Refactor] #39076 冗長なコメントを削除 (/* Cancel the command */)
[hengband/hengband.git] / src / cmd-item.c
index 9b66faa..65f9139 100644 (file)
@@ -48,6 +48,7 @@
 #include "snipe.h"
 #include "player-race.h"
 #include "view-mainwindow.h"
+#include "player-inventory.h"
 
 /*!
  * @brief 持ち物一覧を表示するコマンドのメインルーチン / Display p_ptr->inventory_list
@@ -291,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;
        }
 
@@ -1549,29 +1547,29 @@ void do_cmd_use(void)
                        break;
 
                case TV_FOOD:
-                       do_cmd_eat_food_aux(item);
+                       exe_eat_food(item);
                        break;
 
                case TV_WAND:
-                       do_cmd_aim_wand_aux(item);
+                       exe_aim_wand(item);
                        break;
 
                case TV_STAFF:
-                       do_cmd_use_staff_aux(item);
+                       exe_use_staff(item);
                        break;
 
                case TV_ROD:
-                       do_cmd_zap_rod_aux(item);
+                       exe_zap_rod(item);
                        break;
 
                case TV_POTION:
-                       do_cmd_quaff_potion_aux(item);
+                       exe_quaff_potion(item);
                        break;
 
                case TV_SCROLL:
                        if (cmd_limit_blind(p_ptr)) return;
                        if (cmd_limit_confused(p_ptr)) return;
-                       do_cmd_read_scroll_aux(item, TRUE);
+                       exe_read(item, TRUE);
                        break;
 
                case TV_SHOT:
@@ -1581,7 +1579,7 @@ void do_cmd_use(void)
                        break;
 
                default:
-                       do_cmd_activate_aux(item);
+                       exe_activate(p_ptr, item);
                        break;
        }
 }