• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision49c3c27b339e8ee8f1c4a024ffffa1a4775240f2 (tree)
Time2019-08-11 00:29:13
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #38997 do_cmd_aim_wand() に player_type * 引数を追加.

Change Summary

Incremental Difference

--- a/src/cmd-zapwand.c
+++ b/src/cmd-zapwand.c
@@ -444,21 +444,21 @@ void exe_aim_wand(player_type *creature_ptr, INVENTORY_IDX item)
444444 * @brief 魔法棒を使うコマンドのメインルーチン /
445445 * @return なし
446446 */
447-void do_cmd_aim_wand(void)
447+void do_cmd_aim_wand(player_type *creature_ptr)
448448 {
449449 OBJECT_IDX item;
450450 concptr q, s;
451451
452- if (p_ptr->wild_mode) return;
453- if (cmd_limit_arena(p_ptr)) return;
454- if (p_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
452+ if (creature_ptr->wild_mode) return;
453+ if (cmd_limit_arena(creature_ptr)) return;
454+ if (creature_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
455455 {
456- set_action(p_ptr, ACTION_NONE);
456+ set_action(creature_ptr, ACTION_NONE);
457457 }
458458
459459 q = _("どの魔法棒で狙いますか? ", "Aim which wand? ");
460460 s = _("使える魔法棒がない。", "You have no wand to aim.");
461461 if (!choose_object(&item, q, s, (USE_INVEN | USE_FLOOR), TV_WAND)) return;
462462
463- exe_aim_wand(p_ptr, item);
463+ exe_aim_wand(creature_ptr, item);
464464 }
--- a/src/cmd-zapwand.h
+++ b/src/cmd-zapwand.h
@@ -1,3 +1,3 @@
11 extern bool wand_effect(player_type *creature_ptr, OBJECT_SUBTYPE_VALUE sval, DIRECTION dir, bool powerful, bool magic);
22 extern void exe_aim_wand(player_type *creature_ptr, INVENTORY_IDX item);
3-extern void do_cmd_aim_wand(void);
3+extern void do_cmd_aim_wand(player_type *creature_ptr);
--- a/src/core.c
+++ b/src/core.c
@@ -3973,7 +3973,7 @@ static void process_command(void)
39733973 /* Aim a wand */
39743974 case 'a':
39753975 {
3976- do_cmd_aim_wand();
3976+ do_cmd_aim_wand(p_ptr);
39773977 break;
39783978 }
39793979
Show on old repository browser