• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisionedd4ff4c3ed624b4194c6276af43c91f0dc59683 (tree)
Time2019-08-17 22:54:51
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

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

Change Summary

Incremental Difference

--- a/src/cmd/cmd-item.c
+++ b/src/cmd/cmd-item.c
@@ -1149,7 +1149,7 @@ void do_cmd_look(void)
11491149 * Allow the player to examine other sectors on the map
11501150 * @return なし
11511151 */
1152-void do_cmd_locate(void)
1152+void do_cmd_locate(player_type *creature_ptr)
11531153 {
11541154 DIRECTION dir;
11551155 POSITION y1, x1, y2, x2;
@@ -1217,9 +1217,9 @@ void do_cmd_locate(void)
12171217 /* Recenter the map around the player */
12181218 verify_panel();
12191219
1220- p_ptr->update |= (PU_MONSTERS);
1221- p_ptr->redraw |= (PR_MAP);
1222- p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
1220+ creature_ptr->update |= (PU_MONSTERS);
1221+ creature_ptr->redraw |= (PR_MAP);
1222+ creature_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
12231223 handle_stuff();
12241224 }
12251225
--- a/src/cmd/cmd-item.h
+++ b/src/cmd/cmd-item.h
@@ -12,6 +12,6 @@ extern void do_cmd_inscribe(player_type *creature_ptr);
1212 extern void do_cmd_refill(void);
1313 extern void do_cmd_target(void);
1414 extern void do_cmd_look(void);
15-extern void do_cmd_locate(void);
15+extern void do_cmd_locate(player_type *creature_ptr);
1616 extern void do_cmd_query_symbol(void);
17-extern void do_cmd_use(void);
\ No newline at end of file
17+extern void do_cmd_use(void);
--- a/src/core.c
+++ b/src/core.c
@@ -4035,7 +4035,7 @@ static void process_command(void)
40354035 /* Locate player on map */
40364036 case 'L':
40374037 {
4038- do_cmd_locate();
4038+ do_cmd_locate(p_ptr);
40394039 break;
40404040 }
40414041
Show on old repository browser