• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision498a2a5a065834b2518479027bea89666eace39c (tree)
Time2019-08-15 23:14:31
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd-item.c
+++ b/src/cmd-item.c
@@ -837,7 +837,7 @@ void do_cmd_observe(player_type *creature_ptr)
837837 * Remove the inscription from an object XXX Mention item (when done)?
838838 * @return なし
839839 */
840-void do_cmd_uninscribe(void)
840+void do_cmd_uninscribe(player_type *creature_ptr)
841841 {
842842 OBJECT_IDX item;
843843 object_type *o_ptr;
@@ -846,7 +846,7 @@ void do_cmd_uninscribe(void)
846846 q = _("どのアイテムの銘を消しますか? ", "Un-inscribe which item? ");
847847 s = _("銘を消せるアイテムがない。", "You have nothing to un-inscribe.");
848848
849- o_ptr = choose_object(p_ptr, &item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT), 0);
849+ o_ptr = choose_object(creature_ptr, &item, q, s, (USE_EQUIP | USE_INVEN | USE_FLOOR | IGNORE_BOTHHAND_SLOT), 0);
850850 if (!o_ptr) return;
851851
852852 /* Nothing to remove */
@@ -860,11 +860,11 @@ void do_cmd_uninscribe(void)
860860
861861 /* Remove the incription */
862862 o_ptr->inscription = 0;
863- p_ptr->update |= (PU_COMBINE);
864- p_ptr->window |= (PW_INVEN | PW_EQUIP);
863+ creature_ptr->update |= (PU_COMBINE);
864+ creature_ptr->window |= (PW_INVEN | PW_EQUIP);
865865
866866 /* .や$の関係で, 再計算が必要なはず -- henkma */
867- p_ptr->update |= (PU_BONUS);
867+ creature_ptr->update |= (PU_BONUS);
868868
869869 }
870870
--- a/src/cmd-item.h
+++ b/src/cmd-item.h
@@ -7,7 +7,7 @@ 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);
99 extern void do_cmd_observe(player_type *creature_ptr);
10-extern void do_cmd_uninscribe(void);
10+extern void do_cmd_uninscribe(player_type *creature_ptr);
1111 extern void do_cmd_inscribe(void);
1212 extern void do_cmd_refill(void);
1313 extern void do_cmd_target(void);
--- a/src/core.c
+++ b/src/core.c
@@ -3931,7 +3931,7 @@ static void process_command(void)
39313931 /* Uninscribe an object */
39323932 case '}':
39333933 {
3934- do_cmd_uninscribe();
3934+ do_cmd_uninscribe(p_ptr);
39353935 break;
39363936 }
39373937
--- a/src/store.c
+++ b/src/store.c
@@ -5519,7 +5519,7 @@ static void store_process_command(void)
55195519 /* Uninscribe an object */
55205520 case '}':
55215521 {
5522- do_cmd_uninscribe();
5522+ do_cmd_uninscribe(p_ptr);
55235523 break;
55245524 }
55255525
Show on old repository browser