OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Thu, 29 Nov 2018 03:53:14 +0000 (12:53 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 29 Nov 2018 03:53:14 +0000 (12:53 +0900)
src/cmd-item.c
src/dungeon.c
src/monster-status.c
src/spells2.c
src/spells3.c
src/store.c
src/util.c

index 5e9db01..90ef96f 100644 (file)
@@ -1211,7 +1211,6 @@ static void do_cmd_refill_lamp(void)
 
        msg_print(_("ランプに油を注いだ。", "You fuel your lamp."));
 
 
        msg_print(_("ランプに油を注いだ。", "You fuel your lamp."));
 
-       /* Comment */
        if ((o_ptr->name2 == EGO_LITE_DARKNESS) && (j_ptr->xtra4 > 0))
        {
                j_ptr->xtra4 = 0;
        if ((o_ptr->name2 == EGO_LITE_DARKNESS) && (j_ptr->xtra4 > 0))
        {
                j_ptr->xtra4 = 0;
@@ -1312,7 +1311,6 @@ static void do_cmd_refill_torch(void)
 
        msg_print(_("松明を結合した。", "You combine the torches."));
 
 
        msg_print(_("松明を結合した。", "You combine the torches."));
 
-       /* Comment */
        if ((o_ptr->name2 == EGO_LITE_DARKNESS) && (j_ptr->xtra4 > 0))
        {
                j_ptr->xtra4 = 0;
        if ((o_ptr->name2 == EGO_LITE_DARKNESS) && (j_ptr->xtra4 > 0))
        {
                j_ptr->xtra4 = 0;
index beb0c1c..e3ecd23 100644 (file)
@@ -4757,7 +4757,6 @@ static void process_player(void)
 
        if (p_ptr->action == ACTION_FISH)
        {
 
        if (p_ptr->action == ACTION_FISH)
        {
-               /* Delay */
                Term_xtra(TERM_XTRA_DELAY, 10);
                if (one_in_(1000))
                {
                Term_xtra(TERM_XTRA_DELAY, 10);
                if (one_in_(1000))
                {
index 5b6b144..5f7b5c3 100644 (file)
@@ -721,7 +721,6 @@ bool process_the_world(int num, MONSTER_IDX who, bool vs_player)
                /* Redraw stuff */
                if (p_ptr->window) window_stuff();
 
                /* Redraw stuff */
                if (p_ptr->window) window_stuff();
 
-               /* Delay */
                if (vs_player) Term_xtra(TERM_XTRA_DELAY, 500);
        }
 
                if (vs_player) Term_xtra(TERM_XTRA_DELAY, 500);
        }
 
index ca0d1e0..c797edb 100644 (file)
@@ -1129,7 +1129,6 @@ bool genocide_aux(MONSTER_IDX m_idx, int power, bool player_cast, int dam_side,
        handle_stuff();
        Term_fresh();
 
        handle_stuff();
        Term_fresh();
 
-       /* Delay */
        Term_xtra(TERM_XTRA_DELAY, msec);
 
        return !resist;
        Term_xtra(TERM_XTRA_DELAY, msec);
 
        return !resist;
index 5ec27e9..1359bac 100644 (file)
@@ -1180,7 +1180,6 @@ void phlogiston(void)
 
        msg_print(_("照明用アイテムに燃素を補充した。", "You add phlogiston to your light item."));
 
 
        msg_print(_("照明用アイテムに燃素を補充した。", "You add phlogiston to your light item."));
 
-       /* Comment */
        if (o_ptr->xtra4 >= max_flog)
        {
                o_ptr->xtra4 = (XTRA16)max_flog;
        if (o_ptr->xtra4 >= max_flog)
        {
                o_ptr->xtra4 = (XTRA16)max_flog;
index 4db9601..c36a847 100644 (file)
@@ -564,7 +564,6 @@ static void purchase_analyze(PRICE price, PRICE value, PRICE guess)
        /* Item was worthless, but we bought it */
        if ((value <= 0) && (price > value))
        {
        /* Item was worthless, but we bought it */
        if ((value <= 0) && (price > value))
        {
-               /* Comment */
                msg_print(comment_7a[randint0(MAX_COMMENT_7A)]);
 
                chg_virtue(V_HONOUR, -1);
                msg_print(comment_7a[randint0(MAX_COMMENT_7A)]);
 
                chg_virtue(V_HONOUR, -1);
@@ -576,7 +575,6 @@ static void purchase_analyze(PRICE price, PRICE value, PRICE guess)
        /* Item was cheaper than we thought, and we paid more than necessary */
        else if ((value < guess) && (price > value))
        {
        /* Item was cheaper than we thought, and we paid more than necessary */
        else if ((value < guess) && (price > value))
        {
-               /* Comment */
                msg_print(comment_7b[randint0(MAX_COMMENT_7B)]);
 
                chg_virtue(V_JUSTICE, -1);
                msg_print(comment_7b[randint0(MAX_COMMENT_7B)]);
 
                chg_virtue(V_JUSTICE, -1);
@@ -589,7 +587,6 @@ static void purchase_analyze(PRICE price, PRICE value, PRICE guess)
        /* Item was a good bargain, and we got away with it */
        else if ((value > guess) && (value < (4 * guess)) && (price < value))
        {
        /* Item was a good bargain, and we got away with it */
        else if ((value > guess) && (value < (4 * guess)) && (price < value))
        {
-               /* Comment */
                msg_print(comment_7c[randint0(MAX_COMMENT_7C)]);
 
                if (one_in_(4))
                msg_print(comment_7c[randint0(MAX_COMMENT_7C)]);
 
                if (one_in_(4))
@@ -603,7 +600,6 @@ static void purchase_analyze(PRICE price, PRICE value, PRICE guess)
        /* Item was a great bargain, and we got away with it */
        else if ((value > guess) && (price < value))
        {
        /* Item was a great bargain, and we got away with it */
        else if ((value > guess) && (price < value))
        {
-               /* Comment */
                msg_print(comment_7d[randint0(MAX_COMMENT_7D)]);
 
                if (one_in_(2))
                msg_print(comment_7d[randint0(MAX_COMMENT_7D)]);
 
                if (one_in_(2))
index 4276aef..b685e6b 100644 (file)
@@ -1900,7 +1900,6 @@ static char inkey_aux(void)
                        /* Excessive delay */
                        if (w >= 10) break;
 
                        /* Excessive delay */
                        if (w >= 10) break;
 
-                       /* Delay */
                        Term_xtra(TERM_XTRA_DELAY, w);
                }
        }
                        Term_xtra(TERM_XTRA_DELAY, w);
                }
        }
@@ -2219,7 +2218,6 @@ char inkey(void)
                                        /* Excessive delay */
                                        if (w >= 100) break;
 
                                        /* Excessive delay */
                                        if (w >= 100) break;
 
-                                       /* Delay */
                                        Term_xtra(TERM_XTRA_DELAY, w);
                                }
                        }
                                        Term_xtra(TERM_XTRA_DELAY, w);
                                }
                        }