OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Tue, 18 Dec 2018 13:37:03 +0000 (22:37 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Tue, 18 Dec 2018 13:37:03 +0000 (22:37 +0900)
12 files changed:
src/autopick.c
src/birth.c
src/bldg.c
src/cmd4.c
src/files.c
src/init2.c
src/main-win.c
src/save.c
src/scores.c
src/store.c
src/wizard1.c
src/wizard2.c

index a0e601e..e4bbfb8 100644 (file)
@@ -4486,8 +4486,6 @@ static void draw_text_editor(text_body_type *tb)
        if (tb->dirty_flags & DIRTY_SCREEN)
        {
                tb->dirty_flags |= (DIRTY_ALL | DIRTY_MODE);
-
-               /* Clear screen */
                Term_clear();
        }
 
index 861110e..8785ead 100644 (file)
@@ -4051,8 +4051,6 @@ static bool player_birth_aux(void)
 
 
        /*** Intro ***/
-
-       /* Clear screen */
        Term_clear();
 
        /* Title everything */
@@ -4717,8 +4715,6 @@ static bool ask_quick_start(void)
        /* Doesn't have previous data */
        if (!previous_char.quick_ok) return FALSE;
 
-
-       /* Clear screen */
        Term_clear();
 
        /* Extra info */
index c61c73d..cefdd58 100644 (file)
@@ -3021,8 +3021,6 @@ static PRICE repair_broken_weapon_aux(PRICE bcost)
        char basenm[MAX_NLEN];
        cptr q, s; /* For get_item prompt */
        int row = 7;
-
-       /* Clear screen */
        clear_bldg(0, 22);
 
        prt(_("修復には材料となるもう1つの武器が必要です。", "Hand one material weapon to repair a broken weapon."), row, 2);
index 5315621..28d5de1 100644 (file)
@@ -896,7 +896,6 @@ void do_cmd_nikki(void)
        /* Interact until done */
        while (1)
        {
-               /* Clear screen */
                Term_clear();
 
                /* Ask for a choice */
@@ -1174,8 +1173,6 @@ void do_cmd_messages(int num_now)
        /* Start on first message */
        i = 0;
        screen_save();
-
-       /* Clear screen */
        Term_clear();
 
        /* Process requests until done */
@@ -1373,8 +1370,6 @@ static void do_cmd_options_cheat(cptr info)
        char    ch;
        int             i, k = 0, n = CHEAT_MAX;
        char    buf[80];
-
-       /* Clear screen */
        Term_clear();
 
        /* Interact with the player */
@@ -1524,8 +1519,6 @@ static void do_cmd_options_autosave(cptr info)
        int i, k = 0, n = 2;
        char buf[80];
 
-
-       /* Clear screen */
        Term_clear();
 
        /* Interact with the player */
@@ -1654,8 +1647,6 @@ void do_cmd_options_aux(int page, cptr info)
                /* Notice options on this "page" */
                if (option_info[i].o_page == page) opt[n++] = i;
        }
-
-       /* Clear screen */
        Term_clear();
 
        /* Interact with the player */
@@ -1800,8 +1791,6 @@ static void do_cmd_options_win(void)
                old_flag[j] = window_flag[j];
        }
 
-
-       /* Clear screen */
        Term_clear();
 
        /* Interact */
@@ -2030,8 +2019,6 @@ void do_cmd_options(void)
 
                /* Does not list cheat option when cheat option is off */
                if (!p_ptr->noscore && !allow_debug_opts) n--;
-
-               /* Clear screen */
                Term_clear();
 
                /* Why are we here */
@@ -2593,7 +2580,6 @@ void do_cmd_macros(void)
        /* Process requests until done */
        while (1)
        {
-               /* Clear screen */
                Term_clear();
                prt(_("[ マクロの設定 ]", "Interact with Macros"), 2, 0);
 
@@ -3055,7 +3041,6 @@ void do_cmd_visuals(void)
        /* Interact until done */
        while (1)
        {
-               /* Clear screen */
                Term_clear();
 
                /* Ask for a choice */
@@ -3345,8 +3330,6 @@ void do_cmd_visuals(void)
                                        break;
                                case 'v':
                                        do_cmd_knowledge_monsters(&need_redraw, TRUE, r);
-
-                                       /* Clear screen */
                                        Term_clear();
                                        print_visuals_menu(choice_msg);
                                        break;
@@ -3438,8 +3421,6 @@ void do_cmd_visuals(void)
                                        break;
                                case 'v':
                                        do_cmd_knowledge_objects(&need_redraw, TRUE, k);
-
-                                       /* Clear screen */
                                        Term_clear();
                                        print_visuals_menu(choice_msg);
                                        break;
@@ -3550,8 +3531,6 @@ void do_cmd_visuals(void)
                                        break;
                                case 'v':
                                        do_cmd_knowledge_features(&need_redraw, TRUE, f, &lighting_level);
-
-                                       /* Clear screen */
                                        Term_clear();
                                        print_visuals_menu(choice_msg);
                                        break;
@@ -3628,7 +3607,6 @@ void do_cmd_colors(void)
        /* Interact until done */
        while (1)
        {
-               /* Clear screen */
                Term_clear();
 
                /* Ask for a choice */
@@ -8375,7 +8353,6 @@ void do_cmd_knowledge(void)
        /* Interact until done */
        while (1)
        {
-               /* Clear screen */
                Term_clear();
 
                /* Ask for a choice */
index 418e862..7210d6f 100644 (file)
@@ -5416,8 +5416,6 @@ bool show_file(bool show_version, cptr name, cptr what, int line, BIT_FLAGS mode
 
        /* start from bottom when reverse mode */
        if (line == -1) line = ((size-1)/rows)*rows;
-
-       /* Clear screen */
        Term_clear();
 
        /* Display the file */
@@ -6347,8 +6345,6 @@ static void print_tomb(void)
 #ifdef JP
                int    extra_line = 0;
 #endif
-
-               /* Clear screen */
                Term_clear();
 
                /* Build the filename */
@@ -6656,7 +6652,6 @@ static void show_info(void)
                        /* Display contents of the home */
                        for (k = 0, i = 0; i < st_ptr->stock_num; k++)
                        {
-                               /* Clear screen */
                                Term_clear();
 
                                /* Show 12 items */
@@ -6694,7 +6689,6 @@ static void show_info(void)
  */
 static bool check_score(void)
 {
-       /* Clear screen */
        Term_clear();
 
        /* No score file */
@@ -6817,8 +6811,6 @@ void close_game(void)
 
                /* Show more info */
                show_info();
-
-               /* Clear screen */
                Term_clear();
 
                if (check_score())
index bfc80aa..c95785d 100644 (file)
@@ -2296,8 +2296,6 @@ void init_angband(void)
 
 
        /*** Display the "news" file ***/
-
-       /* Clear screen */
        Term_clear();
 
        /* Build the filename */
index 3f2d30b..559eb2c 100644 (file)
@@ -3169,8 +3169,6 @@ static void windows_map(void)
 \r
        /* Only in graphics mode */\r
        if (!use_graphics) return;\r
-\r
-       /* Clear screen */\r
        Term_xtra_win_clear();\r
 \r
        td->map_tile_wid = (td->tile_wid * td->cols) / MAX_WID;\r
@@ -3883,8 +3881,6 @@ static void process_menus(WORD wCmd)
                        else\r
                        {\r
                                screen_save();\r
-\r
-                               /* Clear screen */\r
                                Term_clear();\r
 \r
                                /* Display the scores */\r
index d51aece..cddf0fa 100644 (file)
@@ -1884,8 +1884,6 @@ bool load_player(void)
                z_patch = vvv[2];
                sf_extra = vvv[3];
 
-
-               /* Clear screen */
                Term_clear();
 
                /* Attempt to load */
index 9c53621..925571f 100644 (file)
@@ -187,7 +187,6 @@ void display_scores_aux(int from, int to, int note, high_score *score)
        /* Show per_screen per page, until "done" */
        for (k = from, place = k+1; k < i; k += per_screen)
        {
-               /* Clear screen */
                Term_clear();
 
                /* Title */
@@ -395,8 +394,6 @@ void display_scores(int from, int to)
 
        /* Paranoia -- No score file */
        if (highscore_fd < 0) quit(_("スコア・ファイルが使用できません。", "Score file unavailable."));
-
-       /* Clear screen */
        Term_clear();
 
        /* Display the scores */
@@ -868,8 +865,6 @@ void kingly(void)
 
        /* Hack -- Instant Gold */
        p_ptr->au += 10000000L;
-
-       /* Clear screen */
        Term_clear();
 
        /* Display a crown */
index a44e63c..6ba4f88 100644 (file)
@@ -2454,8 +2454,6 @@ static void display_store(void)
 {
        char buf[80];
 
-
-       /* Clear screen */
        Term_clear();
 
        /* The "Home" is special */
index 2bd94dc..c0d58e0 100644 (file)
@@ -2452,7 +2452,6 @@ void do_cmd_spoilers(void)
        /* Interact */
        while (1)
        {
-               /* Clear screen */
                Term_clear();
 
                /* Info */
index 667aeb7..9015cf8 100644 (file)
@@ -750,8 +750,6 @@ static KIND_OBJECT_IDX wiz_create_itemtype(void)
 
        char buf[160];
 
-
-       /* Clear screen */
        Term_clear();
 
        /* Print all tval's and their descriptions */
@@ -784,8 +782,6 @@ static KIND_OBJECT_IDX wiz_create_itemtype(void)
 
 
        /*** And now we go for k_idx ***/
-
-       /* Clear screen */
        Term_clear();
 
        /* We have to search the whole itemlist. */