• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision6ac6c4e76de0c6ce7f3f8ad2a444c305182fb349 (tree)
Time2019-08-15 23:11:37
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd-item.c
+++ b/src/cmd-item.c
@@ -805,7 +805,7 @@ void do_cmd_destroy(player_type *creature_ptr)
805805 * @brief アイテムを調査するコマンドのメインルーチン / Observe an item which has been *identify*-ed
806806 * @return なし
807807 */
808-void do_cmd_observe(void)
808+void do_cmd_observe(player_type *creature_ptr)
809809 {
810810 OBJECT_IDX item;
811811 object_type *o_ptr;
@@ -815,7 +815,7 @@ void do_cmd_observe(void)
815815 q = _("どのアイテムを調べますか? ", "Examine which item? ");
816816 s = _("調べられるアイテムがない。", "You have nothing to examine.");
817817
818- o_ptr = choose_object(p_ptr, &item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT), 0);
818+ o_ptr = choose_object(creature_ptr, &item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT), 0);
819819 if (!o_ptr) return;
820820
821821 /* Require full knowledge */
--- a/src/cmd-item.h
+++ b/src/cmd-item.h
@@ -6,7 +6,7 @@ extern void do_cmd_wield(player_type *creature_ptr);
66 extern void do_cmd_takeoff(player_type *creature_ptr);
77 extern void do_cmd_drop(player_type *creature_ptr);
88 extern void do_cmd_destroy(player_type *creature_ptr);
9-extern void do_cmd_observe(void);
9+extern void do_cmd_observe(player_type *creature_ptr);
1010 extern void do_cmd_uninscribe(void);
1111 extern void do_cmd_inscribe(void);
1212 extern void do_cmd_refill(void);
--- a/src/core.c
+++ b/src/core.c
@@ -3630,7 +3630,7 @@ static void process_command(void)
36303630 /* Identify an object */
36313631 case 'I':
36323632 {
3633- do_cmd_observe();
3633+ do_cmd_observe(p_ptr);
36343634 break;
36353635 }
36363636
--- a/src/store.c
+++ b/src/store.c
@@ -5479,7 +5479,7 @@ static void store_process_command(void)
54795479 /* Identify an object */
54805480 case 'I':
54815481 {
5482- do_cmd_observe();
5482+ do_cmd_observe(p_ptr);
54835483 break;
54845484 }
54855485
Show on old repository browser