OSDN Git Service

[Refactor] #38997 do_cmd_spike() に player_type * 引数を追加.
[hengband/hengband.git] / src / core.c
index 3472fbc..b164455 100644 (file)
@@ -2474,8 +2474,8 @@ static void process_world_aux_mutation(void)
                msg_print(_("胃が痙攣し、食事を失った!", "Your stomach roils, and you lose your lunch!"));
                msg_print(NULL);
                set_food(p_ptr, PY_FOOD_WEAK);
-               if (music_singing_any()) stop_singing(p_ptr);
-               if (hex_spelling_any()) stop_hex_spell_all();
+               if (music_singing_any(p_ptr)) stop_singing(p_ptr);
+               if (hex_spelling_any(p_ptr)) stop_hex_spell_all();
        }
 
        if ((p_ptr->muta2 & MUT2_WALK_SHAD) && !p_ptr->anti_magic && one_in_(12000) && !p_ptr->inside_arena)
@@ -3530,8 +3530,6 @@ static void process_command(void)
                }
 
                /*** Wizard Commands ***/
-
-               /* Toggle Wizard Mode */
                case KTRL('W'):
                {
                        if (p_ptr->wizard)
@@ -3636,10 +3634,9 @@ static void process_command(void)
                        break;
                }
 
-               /* Hack -- toggle windows */
                case KTRL('I'):
                {
-                       toggle_inven_equip();
+                       toggle_inven_equip(p_ptr);
                        break;
                }
 
@@ -3712,7 +3709,6 @@ static void process_command(void)
                        break;
                }
 
-               /* Toggle search mode */
                case 'S':
                {
                        if (p_ptr->action == ACTION_SEARCH) set_action(p_ptr, ACTION_NONE);
@@ -3790,14 +3786,14 @@ static void process_command(void)
                /* Close a door */
                case 'c':
                {
-                       do_cmd_close();
+                       do_cmd_close(p_ptr);
                        break;
                }
 
                /* Jam a door with spikes */
                case 'j':
                {
-                       do_cmd_spike();
+                       do_cmd_spike(p_ptr);
                        break;
                }