• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionc36206da50ca834353cc855873c077e216b9d41b (tree)
Time2019-08-17 22:58:49
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd/cmd-item.c
+++ b/src/cmd/cmd-item.c
@@ -1064,16 +1064,16 @@ static void do_cmd_refill_torch(void)
10641064 * Refill the players lamp, or restock his torches
10651065 * @return なし
10661066 */
1067-void do_cmd_refill(void)
1067+void do_cmd_refill(player_type *creature_ptr)
10681068 {
10691069 object_type *o_ptr;
10701070
10711071 /* Get the light */
1072- o_ptr = &p_ptr->inventory_list[INVEN_LITE];
1072+ o_ptr = &creature_ptr->inventory_list[INVEN_LITE];
10731073
1074- if (p_ptr->special_defense & KATA_MUSOU)
1074+ if (creature_ptr->special_defense & KATA_MUSOU)
10751075 {
1076- set_action(p_ptr, ACTION_NONE);
1076+ set_action(creature_ptr, ACTION_NONE);
10771077 }
10781078
10791079 /* It is nothing */
--- a/src/cmd/cmd-item.h
+++ b/src/cmd/cmd-item.h
@@ -9,7 +9,7 @@ extern void do_cmd_destroy(player_type *creature_ptr);
99 extern void do_cmd_observe(player_type *creature_ptr);
1010 extern void do_cmd_uninscribe(player_type *creature_ptr);
1111 extern void do_cmd_inscribe(player_type *creature_ptr);
12-extern void do_cmd_refill(void);
12+extern void do_cmd_refill(player_type *creature_ptr);
1313 extern void do_cmd_target(void);
1414 extern void do_cmd_look(void);
1515 extern void do_cmd_locate(player_type *creature_ptr);
--- a/src/core.c
+++ b/src/core.c
@@ -3952,7 +3952,7 @@ static void process_command(void)
39523952 /* Fuel your lantern/torch */
39533953 case 'F':
39543954 {
3955- do_cmd_refill();
3955+ do_cmd_refill(p_ptr);
39563956 break;
39573957 }
39583958
Show on old repository browser