OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
authorDeskull <deskull@users.sourceforge.jp>
Fri, 4 Jan 2019 02:05:25 +0000 (11:05 +0900)
committerDeskull <deskull@users.sourceforge.jp>
Fri, 4 Jan 2019 02:05:25 +0000 (11:05 +0900)
src/bldg.c
src/dungeon.c
src/floor-save.c
src/save.c
src/store.c

index e87ab3a..22066b3 100644 (file)
@@ -4391,10 +4391,7 @@ void do_cmd_bldg(void)
                p_ptr->oldpx = p_ptr->x;
        }
 
-       /* Forget the lite */
        forget_lite();
-
-       /* Forget the view */
        forget_view();
 
        /* Hack -- Increase "icky" depth */
@@ -4502,8 +4499,7 @@ void quest_discovery(QUEST_IDX q_idx)
                /* Unique */
 
                /* Hack -- "unique" monsters must be "unique" */
-               if ((r_ptr->flags1 & RF1_UNIQUE) &&
-                   (0 == r_ptr->max_num))
+               if ((r_ptr->flags1 & RF1_UNIQUE) && (0 == r_ptr->max_num))
                {
                        msg_print(_("この階は以前は誰かによって守られていたようだ…。", "It seems that this level was protected by someone before..."));
                        /* The unique is already dead */
index f8e3318..1ecd73c 100644 (file)
@@ -6208,14 +6208,8 @@ void play_game(bool new_game)
                /* Cancel the health bar */
                health_track(0);
 
-
-               /* Forget the lite */
                forget_lite();
-
-               /* Forget the view */
                forget_view();
-
-               /* Forget the view */
                clear_mon_lite();
 
                /* Handle "quit and save" */
index 7677e23..f2128fc 100644 (file)
@@ -1051,13 +1051,8 @@ void leave_floor(void)
                /* Record the last visit turn of current floor */
                sf_ptr->last_visit = turn;
 
-               /* Forget the lite */
                forget_lite();
-
-               /* Forget the view */
                forget_view();
-
-               /* Forget the view */
                clear_mon_lite();
 
                /* Save current floor */
index 129b6de..bf1b59c 100644 (file)
@@ -1149,20 +1149,14 @@ static bool wr_dungeon(void)
        saved_floor_type *cur_sf_ptr;
        int i;
 
-       /* Forget the lite */
        forget_lite();
-
-       /* Forget the view */
        forget_view();
-
-       /* Forget the view */
        clear_mon_lite();
 
        /* Update lite/view */
        p_ptr->update |= (PU_VIEW | PU_LITE | PU_MON_LITE);
        p_ptr->update |= (PU_MONSTERS | PU_DISTANCE | PU_FLOW);
 
-
        /*** Meta info ***/
 
        /* Number of floor_id used from birth */
index ca43b8a..c22aaeb 100644 (file)
@@ -4601,11 +4601,11 @@ static void store_process_command(void)
  */
 void do_cmd_store(void)
 {
-       int         which;
-       int         maintain_num;
-       int         i;
-       cave_type   *c_ptr;
-       bool        need_redraw_store_inv; /* To redraw missiles damage and prices in store */
+       int which;
+       int maintain_num;
+       int i;
+       cave_type *c_ptr;
+       bool need_redraw_store_inv; /* To redraw missiles damage and prices in store */
        int w, h;
 
        /* Get term size */
@@ -4658,24 +4658,15 @@ void do_cmd_store(void)
                town[p_ptr->town_num].store[which].last_visit = turn;
        }
 
-       /* Forget the lite */
        forget_lite();
-
-       /* Forget the view */
        forget_view();
 
-
        /* Hack -- Character is in "icky" mode */
        character_icky = TRUE;
 
-
-       /* No command argument */
+       /* command reset */
        command_arg = 0;
-
-       /* No repeated command */
        command_rep = 0;
-
-       /* No automatic command */
        command_new = 0;
 
        /* Do not expand macros */
@@ -4691,13 +4682,11 @@ void do_cmd_store(void)
        st_ptr = &town[p_ptr->town_num].store[cur_store_num];
        ot_ptr = &owners[cur_store_num][st_ptr->owner];
 
-
        /* Start at the beginning */
        store_top = 0;
 
        play_music(TERM_XTRA_MUSIC_BASIC, MUSIC_BASIC_BUILD);
 
-       /* Display the store */
        display_store();
 
        /* Do not leave */