OSDN Git Service

[Refactor] #37353 コメント整理。 / Refactor comments.
[hengband/hengband.git] / src / floor-streams.c
index 7db9eca..a8979a0 100644 (file)
@@ -264,8 +264,6 @@ void build_streamer(IDX feat, int chance)
                                if (!in_bounds2(ty, tx)) continue;
                                break;
                        }
-
-                       /* Access the grid */
                        c_ptr = &cave[ty][tx];
                        f_ptr = &f_info[c_ptr->feat];
 
@@ -290,12 +288,11 @@ void build_streamer(IDX feat, int chance)
 
                        if (c_ptr->o_idx && !have_flag(streamer_ptr->flags, FF_DROP))
                        {
-                               s16b this_o_idx, next_o_idx = 0;
+                               OBJECT_IDX this_o_idx, next_o_idx = 0;
 
                                /* Scan all objects in the grid */
                                for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
                                {
-                                       /* Acquire object */
                                        object_type *o_ptr = &o_list[this_o_idx];
 
                                        /* Acquire next object */
@@ -309,7 +306,7 @@ void build_streamer(IDX feat, int chance)
 
                                                if (cheat_peek)
                                                {
-                                                       char o_name[MAX_NLEN];
+                                                       GAME_TEXT o_name[MAX_NLEN];
                                                        object_desc(o_name, o_ptr, (OD_NAME_ONLY | OD_STORE));
                                                        msg_format(_("伝説のアイテム (%s) はストリーマーにより削除された。",
                                                                "Artifact (%s) was deleted by streamer."), o_name);
@@ -322,7 +319,6 @@ void build_streamer(IDX feat, int chance)
                                        }
                                }
 
-                               /* Delete objects */
                                delete_object(ty, tx);
                        }
 
@@ -441,7 +437,8 @@ void place_trees(POSITION x, POSITION y)
  */
 void destroy_level(void)
 {
-       int y1, x1, n;
+       POSITION y1, x1;
+       int n;
 
        /* Note destroyed levels */
        msg_print_wizard(CHEAT_DUNGEON, _("階に*破壊*の痕跡を生成しました。", "Destroyed Level."));