OSDN Git Service

[Refactor] #37353 空白整理。 / Refactor spaces.
authorDeskull <deskull@users.sourceforge.jp>
Thu, 24 Jan 2019 14:55:02 +0000 (23:55 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Thu, 24 Jan 2019 14:55:02 +0000 (23:55 +0900)
13 files changed:
src/artifact.c
src/bldg.c
src/cmd-item.c
src/cmd5.c
src/dungeon.c
src/files.c
src/load.c
src/object1.c
src/object2.c
src/player-status.c
src/spells2.c
src/spells3.c
src/store.c

index c5ee5fc..78fb9ee 100644 (file)
@@ -2020,7 +2020,6 @@ bool create_artifact(object_type *o_ptr, bool a_scroll)
                GAME_TEXT dummy_name[MAX_NLEN] = "";
                concptr ask_msg = _("このアーティファクトを何と名付けますか?", "What do you want to call the artifact? ");
 
-               /* Identify it fully */
                object_aware(o_ptr);
                object_known(o_ptr);
 
index 557f9b2..b3338bf 100644 (file)
@@ -1868,7 +1868,6 @@ static bool kankin(void)
                                object_prep(&forge, lookup_kind(prize_list[num-1].tval, prize_list[num-1].sval));
                                apply_magic(&forge, object_level, AM_NO_FIXED_ART);
 
-                               /* Identify it fully */
                                object_aware(&forge);
                                object_known(&forge);
 
index fc9baba..0f06ca4 100644 (file)
@@ -378,7 +378,6 @@ void do_cmd_wield(void)
        /* Wear the new stuff */
        object_copy(o_ptr, q_ptr);
 
-       /* Player touches it */
        o_ptr->marked |= OM_TOUCHED;
 
        p_ptr->total_weight += q_ptr->weight;
index dff8199..6831a8d 100644 (file)
@@ -434,7 +434,7 @@ void do_cmd_browse(void)
        SPELL_IDX spells[64];
        char temp[62*4];
 
-       object_type     *o_ptr;
+       object_type *o_ptr;
 
        concptr q, s;
 
@@ -852,7 +852,7 @@ void do_cmd_cast(void)
        MANA_POINT need_mana;
 
        concptr prayer;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        const magic_type *s_ptr;
        concptr q, s;
 
index b70e1a9..a6c5250 100644 (file)
@@ -147,7 +147,6 @@ static void sense_inventory_aux(INVENTORY_IDX slot, bool heavy)
 
        }
 
-       /* We have "felt" it */
        o_ptr->ident |= (IDENT_SENSE);
 
        /* Set the "inscription" */
index 9268167..e75b317 100644 (file)
@@ -2030,7 +2030,7 @@ static void display_player_various(void)
        int             shots, shot_frac;
        bool dokubari;
 
-       object_type             *o_ptr;
+       object_type *o_ptr;
 
        if (p_ptr->muta2 & MUT2_HORNS)     muta_att++;
        if (p_ptr->muta2 & MUT2_SCOR_TAIL) muta_att++;
@@ -6527,7 +6527,7 @@ static void print_tomb(void)
 static void show_info(void)
 {
        int             i, j, k, l;
-       object_type             *o_ptr;
+       object_type *o_ptr;
        store_type              *st_ptr;
 
        /* Hack -- Know everything in the inven/equip */
index 805894f..d57c92d 100644 (file)
@@ -2423,9 +2423,7 @@ static errr rd_inventory(void)
                /* Wield equipment */
                if (n >= INVEN_RARM)
                {
-                       /* Player touches it */
                        q_ptr->marked |= OM_TOUCHED;
-
                        object_copy(&inventory[n], q_ptr);
 
                        /* Add the weight */
@@ -2450,9 +2448,7 @@ static errr rd_inventory(void)
                        /* Get a slot */
                        n = slot++;
 
-                       /* Player touches it */
                        q_ptr->marked |= OM_TOUCHED;
-
                        object_copy(&inventory[n], q_ptr);
 
                        /* Add the weight */
index 719b0b4..9de2810 100644 (file)
@@ -2105,7 +2105,7 @@ COMMAND_CODE show_inven(int target_item, BIT_FLAGS mode)
        COMMAND_CODE i;
        int j, k, l, z = 0;
        int             col, cur_col, len;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        GAME_TEXT o_name[MAX_NLEN];
        char            tmp_val[80];
        COMMAND_CODE    out_index[23];
@@ -2269,7 +2269,7 @@ COMMAND_CODE show_equip(int target_item, BIT_FLAGS mode)
        COMMAND_CODE i;
        int j, k, l;
        int             col, cur_col, len;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        char            tmp_val[80];
        GAME_TEXT o_name[MAX_NLEN];
        COMMAND_CODE    out_index[23];
index eb3c238..99232bb 100644 (file)
@@ -3621,7 +3621,6 @@ static void a_m_aux_3(object_type *o_ptr, DEPTH level, int power)
                                                break;
                                        }
                                }
-                               /* Uncurse it */
                                o_ptr->curse_flags = 0L;
                        }
                        else if ((power == -2) && one_in_(2))
@@ -3904,7 +3903,6 @@ static void a_m_aux_3(object_type *o_ptr, DEPTH level, int power)
                                                }
                                        }
                                }
-                               /* Uncurse it */
                                o_ptr->curse_flags = 0L;
                        }
                        else if ((power == -2) && one_in_(2))
@@ -6247,7 +6245,7 @@ void inven_drop(INVENTORY_IDX item, ITEM_NUMBER amt)
 void combine_pack(void)
 {
        int             i, j, k;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        object_type     *j_ptr;
        bool            flag = FALSE, combined;
 
@@ -6357,7 +6355,7 @@ void reorder_pack(void)
        s32b            o_value;
        object_type     forge;
        object_type     *q_ptr;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        bool            flag = FALSE;
 
 
index 3ec8a28..6326dcb 100644 (file)
@@ -3228,7 +3228,7 @@ static void calc_mana(void)
 {
        int msp, levels, cur_wgt, max_wgt;
 
-       object_type     *o_ptr;
+       object_type *o_ptr;
 
 
        /* Hack -- Must be literate */
index bff061b..908f118 100644 (file)
@@ -4894,7 +4894,7 @@ bool panic_hit(void)
 bool psychometry(void)
 {
        OBJECT_IDX      item;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        GAME_TEXT o_name[MAX_NLEN];
        byte            feel;
        concptr            q, s;
@@ -4934,16 +4934,11 @@ bool psychometry(void)
 #endif
 
 
-       /* We have "felt" it */
        o_ptr->ident |= (IDENT_SENSE);
-
-       /* "Inscribe" it */
        o_ptr->feeling = feel;
-
-       /* Player touches it */
        o_ptr->marked |= OM_TOUCHED;
-       p_ptr->update |= (PU_COMBINE | PU_REORDER);
 
+       p_ptr->update |= (PU_COMBINE | PU_REORDER);
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
 
        /* Valid "tval" codes */
index dc86d69..1bb37b7 100644 (file)
@@ -984,7 +984,7 @@ bool reset_recall(void)
 bool apply_disenchant(BIT_FLAGS mode)
 {
        int             t = 0;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        GAME_TEXT o_name[MAX_NLEN];
        int to_h, to_d, to_a, pval;
 
@@ -1850,17 +1850,12 @@ static int remove_curse_aux(int all)
                /* Perma-Cursed Items can NEVER be uncursed */
                if (o_ptr->curse_flags & TRC_PERMA_CURSE)
                {
-                       /* Uncurse it */
                        o_ptr->curse_flags &= (TRC_CURSED | TRC_HEAVY_CURSE | TRC_PERMA_CURSE);
                        continue;
                }
 
-               /* Uncurse it */
                o_ptr->curse_flags = 0L;
-
-               /* Hack -- Assume felt */
                o_ptr->ident |= (IDENT_SENSE);
-
                o_ptr->feeling = FEEL_NONE;
 
                p_ptr->update |= (PU_BONUS);
@@ -2324,12 +2319,10 @@ bool identify_item(object_type *o_ptr)
                        chg_virtue(V_KNOWLEDGE, 1);
        }
 
-       /* Identify it fully */
        object_aware(o_ptr);
        object_known(o_ptr);
-
-       /* Player touches it */
        o_ptr->marked |= OM_TOUCHED;
+
        p_ptr->update |= (PU_BONUS | PU_COMBINE | PU_REORDER);
        p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
 
@@ -2358,7 +2351,7 @@ bool identify_item(object_type *o_ptr)
 bool ident_spell(bool only_equip)
 {
        OBJECT_IDX item;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        GAME_TEXT o_name[MAX_NLEN];
        concptr            q, s;
        bool old_known;
@@ -2426,8 +2419,8 @@ bool ident_spell(bool only_equip)
 bool mundane_spell(bool only_equip)
 {
        OBJECT_IDX item;
-       object_type     *o_ptr;
-       concptr            q, s;
+       object_type *o_ptr;
+       concptr q, s;
 
        if (only_equip) item_tester_hook = object_is_weapon_armour_ammo;
 
@@ -2875,12 +2868,9 @@ bool bless_weapon(void)
 #endif
 
 
-               /* Uncurse it */
                o_ptr->curse_flags = 0L;
 
-               /* Hack -- Assume felt */
                o_ptr->ident |= (IDENT_SENSE);
-
                o_ptr->feeling = FEEL_NONE;
 
                /* Recalculate the bonuses */
@@ -2984,7 +2974,7 @@ bool bless_weapon(void)
 bool pulish_shield(void)
 {
        OBJECT_IDX item;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        BIT_FLAGS flgs[TR_FLAG_SIZE];
        GAME_TEXT o_name[MAX_NLEN];
        concptr            q, s;
index 90df834..b6268b6 100644 (file)
@@ -3523,7 +3523,7 @@ static void updatebargain(PRICE price, PRICE minprice, int num)
 static void display_entry(int pos)
 {
        int             i, cur_col;
-       object_type     *o_ptr;
+       object_type *o_ptr;
        s32b            x;
 
        GAME_TEXT o_name[MAX_NLEN];