OSDN Git Service

[Refactor] #38997 do_cmd_save_screen() に player_type * 引数を追加 / Add player_type *...
authorHourier <hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 04:15:12 +0000 (13:15 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sun, 5 Jan 2020 04:15:12 +0000 (13:15 +0900)
src/cmd/cmd-dump.c
src/core.c
src/player-damage.c
src/store.c

index 26f78b3..ed3e9b1 100644 (file)
@@ -4006,7 +4006,7 @@ void (*screendump_aux)(void) = NULL;
 /*
  * Hack -- save a screen dump to a file
  */
-void do_cmd_save_screen(void)
+void do_cmd_save_screen(player_type *creature_ptr)
 {
        bool old_use_graphics = use_graphics;
        bool html_dump = FALSE;
@@ -4036,14 +4036,14 @@ void do_cmd_save_screen(void)
        {
                use_graphics = FALSE;
                reset_visuals();
-               p_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
+               creature_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
                handle_stuff();
        }
 
        if (html_dump)
        {
                do_cmd_save_screen_html();
-               do_cmd_redraw(p_ptr);
+               do_cmd_redraw(creature_ptr);
        }
 
        /* Do we use a special screendump function ? */
@@ -4133,7 +4133,7 @@ void do_cmd_save_screen(void)
        {
                use_graphics = TRUE;
                reset_visuals();
-               p_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
+               creature_ptr->redraw |= (PR_WIPE | PR_BASIC | PR_EXTRA | PR_MAP | PR_EQUIPPY);
                handle_stuff();
        }
 }
index ffa7688..d660d95 100644 (file)
@@ -4245,7 +4245,7 @@ static void process_command(player_type *creature_ptr)
                /* Save "screen dump" */
                case ')':
                {
-                       do_cmd_save_screen();
+                       do_cmd_save_screen(creature_ptr);
                        break;
                }
 
index 95141d1..b67b7ac 100644 (file)
@@ -570,7 +570,7 @@ int take_hit(player_type *creature_ptr, int damage_type, HIT_POINT damage, concp
 
                        if (get_check_strict(_("画面を保存しますか?", "Dump the screen? "), CHECK_NO_HISTORY))
                        {
-                               do_cmd_save_screen();
+                               do_cmd_save_screen(creature_ptr);
                        }
 
                        flush();
index 466f8a2..2fd7179 100644 (file)
@@ -5659,7 +5659,7 @@ static void store_process_command(player_type *client_ptr)
                /* Save "screen dump" */
                case ')':
                {
-                       do_cmd_save_screen();
+                       do_cmd_save_screen(client_ptr);
                        break;
                }