OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Sat, 1 Dec 2018 10:56:45 +0000 (19:56 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Sat, 1 Dec 2018 10:56:45 +0000 (19:56 +0900)
14 files changed:
src/cave.c
src/cmd2.c
src/cmd4.c
src/dungeon.c
src/effects.c
src/object2.c
src/spells1.c
src/spells2.c
src/spells3.c
src/store.c
src/trap.c
src/wizard2.c
src/xtra1.c
src/xtra2.c

index dc940a3..5d33968 100644 (file)
@@ -2503,7 +2503,6 @@ void forget_lite(void)
                /* Forget "LITE" flag */
                cave[y][x].info &= ~(CAVE_LITE);
 
-               /* Redraw */
                /* lite_spot(y, x); Perhaps don't need? */
        }
 
@@ -4035,7 +4034,6 @@ void delayed_visual_update(void)
                /* If required, note */
                if (c_ptr->info & CAVE_NOTE) note_spot(y, x);
 
-               /* Redraw */
                lite_spot(y, x);
 
                /* Hack -- Visual update of monster on this grid */
@@ -4573,7 +4571,6 @@ void cave_set_feat(POSITION y, POSITION x, FEAT_IDX feat)
 
        note_spot(y, x);
 
-       /* Redraw */
        lite_spot(y, x);
 
        /* Check if los has changed */
@@ -4611,7 +4608,6 @@ void cave_set_feat(POSITION y, POSITION x, FEAT_IDX feat)
 
                                note_spot(yy, xx);
 
-                               /* Redraw */
                                lite_spot(yy, xx);
                        }
 
@@ -4755,7 +4751,6 @@ void remove_mirror(POSITION y, POSITION x)
 
        note_spot(y, x);
 
-       /* Redraw */
        lite_spot(y, x);
 }
 
index e3ee7a7..79cf6db 100644 (file)
@@ -2908,7 +2908,6 @@ void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
 
                        note_spot(ny, nx);
 
-                       /* Redraw */
                        lite_spot(ny, nx);
                }
 
@@ -2948,7 +2947,6 @@ void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
 
                        note_spot(ny, nx);
 
-                       /* Redraw */
                        lite_spot(ny, nx);
                }
 
@@ -3092,7 +3090,6 @@ void do_cmd_fire_aux(INVENTORY_IDX item, object_type *j_ptr)
 
                                        note_spot(ny, nx);
 
-                                       /* Redraw */
                                        lite_spot(ny, nx);
                                }
 
index 2e095f2..e7a4c52 100644 (file)
@@ -1017,8 +1017,6 @@ void do_cmd_redraw(void)
 
                /* Activate */
                Term_activate(angband_term[j]);
-
-               /* Redraw */
                Term_redraw();
 
                /* Refresh */
index 0307335..46d5ab0 100644 (file)
@@ -736,11 +736,8 @@ static void regenhp(int percent)
        /* Notice changes */
        if (old_chp != p_ptr->chp)
        {
-               /* Redraw */
                p_ptr->redraw |= (PR_HP);
-
                p_ptr->window |= (PW_PLAYER);
-
                wild_regen = 20;
        }
 }
@@ -828,12 +825,9 @@ static void regenmana(int upkeep_factor, int regen_amount)
        /* Redraw mana */
        if (old_csp != p_ptr->csp)
        {
-               /* Redraw */
                p_ptr->redraw |= (PR_MANA);
-
                p_ptr->window |= (PW_PLAYER);
                p_ptr->window |= (PW_SPELL);
-
                wild_regen = 20;
        }
 }
index 8cb29aa..caf759a 100644 (file)
@@ -3745,7 +3745,6 @@ bool hp_player(int num)
                        p_ptr->chp_frac = 0;
                }
 
-               /* Redraw */
                p_ptr->redraw |= (PR_HP);
 
                p_ptr->window |= (PW_PLAYER);
index 2fb86a6..ddc469c 100644 (file)
@@ -4946,7 +4946,6 @@ void place_object(POSITION y, POSITION x, BIT_FLAGS mode)
 
                note_spot(y, x);
 
-               /* Redraw */
                lite_spot(y, x);
        }
        else
@@ -5065,7 +5064,6 @@ void place_gold(POSITION y, POSITION x)
 
                note_spot(y, x);
 
-               /* Redraw */
                lite_spot(y, x);
        }
 }
index e71736d..c6bbc83 100644 (file)
@@ -854,7 +854,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
                        {
                                c_ptr->info &= ~(CAVE_UNSAFE);
 
-                               /* Redraw */
                                lite_spot(y, x);
 
                                obvious = TRUE;
@@ -885,7 +884,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
                        {
                                c_ptr->info &= ~(CAVE_UNSAFE);
 
-                               /* Redraw */
                                lite_spot(y, x);
 
                                obvious = TRUE;
@@ -907,7 +905,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
 
                                note_spot(y, x);
 
-                               /* Redraw */
                                lite_spot(y, x);
 
                                /* Check line of sight */
@@ -998,7 +995,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
 
                        note_spot(y, x);
 
-                       /* Redraw */
                        lite_spot(y, x);
 
                        break;
@@ -1076,7 +1072,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
 
                                note_spot(y, x);
 
-                               /* Redraw */
                                lite_spot(y, x);
 
                                update_local_illumination(y, x);
@@ -1140,7 +1135,6 @@ static bool project_f(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
                                        note_spot(y, x);
                                }
 
-                               /* Redraw */
                                lite_spot(y, x);
 
                                update_local_illumination(y, x);
@@ -1567,7 +1561,6 @@ static bool project_o(MONSTER_IDX who, POSITION r, POSITION y, POSITION x, HIT_P
                                        (void)potion_smash_effect(who, y, x, k_idx);
                                }
 
-                               /* Redraw */
                                lite_spot(y, x);
                        }
                }
index 9af8a81..97a9847 100644 (file)
@@ -50,7 +50,6 @@ static bool detect_feat_flag(POSITION range, int flag, bool known)
 
                                        c_ptr->info &= ~(CAVE_UNSAFE);
 
-                                       /* Redraw */
                                        lite_spot(y, x);
                                }
                        }
@@ -64,7 +63,6 @@ static bool detect_feat_flag(POSITION range, int flag, bool known)
                                /* Hack -- Memorize */
                                c_ptr->info |= (CAVE_MARK);
 
-                               /* Redraw */
                                lite_spot(y, x);
 
                                detect = TRUE;
@@ -1077,7 +1075,6 @@ bool genocide_aux(MONSTER_IDX m_idx, int power, bool player_cast, int dam_side,
        /* Visual feedback */
        move_cursor_relative(p_ptr->y, p_ptr->x);
 
-       /* Redraw */
        p_ptr->redraw |= (PR_HP);
        p_ptr->window |= (PW_PLAYER);
 
@@ -2261,7 +2258,6 @@ static void cave_temp_room_lite(void)
                /* Note */
                note_spot(y, x);
 
-               /* Redraw */
                lite_spot(y, x);
 
                update_local_illumination(y, x);
@@ -2344,7 +2340,6 @@ static void cave_temp_room_unlite(void)
                                update_monster(c_ptr->m_idx, FALSE);
                        }
 
-                       /* Redraw */
                        lite_spot(y, x);
 
                        update_local_illumination(y, x);
index 3d51aee..92afc06 100644 (file)
@@ -1726,7 +1726,6 @@ bool warding_glyph(void)
 
        note_spot(p_ptr->y, p_ptr->x);
 
-       /* Redraw */
        lite_spot(p_ptr->y, p_ptr->x);
 
        return TRUE;
@@ -1753,7 +1752,6 @@ bool place_mirror(void)
 
        note_spot(p_ptr->y, p_ptr->x);
 
-       /* Redraw */
        lite_spot(p_ptr->y, p_ptr->x);
 
        update_local_illumination(p_ptr->y, p_ptr->x);
@@ -1781,7 +1779,6 @@ bool explosive_rune(void)
 
        note_spot(p_ptr->y, p_ptr->x);
        
-       /* Redraw */
        lite_spot(p_ptr->y, p_ptr->x);
 
        return TRUE;
index ecc931b..3300959 100644 (file)
@@ -4515,7 +4515,6 @@ static void store_process_command(void)
                        break;
                }
 
-               /* Redraw */
                case KTRL('R'):
                {
                        do_cmd_redraw();
index 4a1b55f..9bb329f 100644 (file)
@@ -90,8 +90,6 @@ void disclose_grid(POSITION y, POSITION x)
                c_ptr->mimic = 0;\r
 \r
                note_spot(y, x);\r
-\r
-               /* Redraw */\r
                lite_spot(y, x);\r
        }\r
 }\r
index 61ebcd6..764b4af 100644 (file)
@@ -1753,8 +1753,6 @@ static void do_cmd_wiz_create_feature(void)
                c_ptr->info |= (CAVE_GLOW | CAVE_OBJECT);
 
        note_spot(y, x);
-
-       /* Redraw */
        lite_spot(y, x);
 
        /* Update some things */
index 2d4cccd..1ef756d 100644 (file)
@@ -5450,13 +5450,10 @@ void calc_bonuses(void)
        /* Redraw armor (if needed) */
        if ((p_ptr->dis_ac != old_dis_ac) || (p_ptr->dis_to_a != old_dis_to_a))
        {
-               /* Redraw */
                p_ptr->redraw |= (PR_ARMOR);
-
                p_ptr->window |= (PW_PLAYER);
        }
 
-
        if (p_ptr->ryoute && !omoi)
        {
                int bonus_to_h=0, bonus_to_d=0;
index e898298..bdc7f4c 100644 (file)
@@ -2066,8 +2066,6 @@ void resize_map(void)
 
        /* Hack -- update */
        handle_stuff();
-       
-       /* Redraw */
        Term_redraw();
 
        /*
@@ -2091,13 +2089,10 @@ void redraw_window(void)
        if (!character_dungeon) return;
 
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_SPELL | PW_PLAYER);
-
        p_ptr->window |= (PW_MESSAGE | PW_OVERHEAD | PW_DUNGEON | PW_MONSTER | PW_OBJECT);
 
        /* Hack -- update */
        handle_stuff();
-
-       /* Redraw */
        Term_redraw();
 }