• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision6abcbda2a9d6f6e6e184778adc80d191674ebdf8 (tree)
Time2019-06-20 00:19:22
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd-basic.c
+++ b/src/cmd-basic.c
@@ -490,19 +490,19 @@ void do_cmd_go_down(player_type *creature_ptr)
490490 * @brief 探索コマンドのメインルーチン / Simple command to "search" for one current_world_ptr->game_turn
491491 * @return なし
492492 */
493-void do_cmd_search(void)
493+void do_cmd_search(player_type * creature_ptr)
494494 {
495495 /* Allow repeated command */
496496 if (command_arg)
497497 {
498498 /* Set repeat count */
499499 command_rep = command_arg - 1;
500- p_ptr->redraw |= (PR_STATE);
500+ creature_ptr->redraw |= (PR_STATE);
501501
502502 /* Cancel the arg */
503503 command_arg = 0;
504504 }
505- take_turn(p_ptr, 100);
505+ take_turn(creature_ptr, 100);
506506
507507 /* Search */
508508 search();
--- a/src/cmd-basic.h
+++ b/src/cmd-basic.h
@@ -11,7 +11,7 @@ extern bool cmd_limit_stun(player_type *creature_ptr);
1111 extern void forget_travel_flow(void);
1212 extern void do_cmd_go_up(player_type *creature_ptr);
1313 extern void do_cmd_go_down(player_type *creature_ptr);
14-extern void do_cmd_search(void);
14+extern void do_cmd_search(player_type *creature_ptr);
1515 extern void do_cmd_open(void);
1616 extern void do_cmd_close(void);
1717 extern void do_cmd_tunnel(void);
--- a/src/core.c
+++ b/src/core.c
@@ -3708,7 +3708,7 @@ static void process_command(void)
37083708 /* Search for traps/doors */
37093709 case 's':
37103710 {
3711- do_cmd_search();
3711+ do_cmd_search(p_ptr);
37123712 break;
37133713 }
37143714
Show on old repository browser