OSDN Git Service

[Refactor] #37353 コメント整理 / Refactor comments.
[hengband/hengband.git] / src / grid.c
index 301457a..b2b97cc 100644 (file)
@@ -64,7 +64,6 @@ bool new_player_spot(void)
                /* Refuse to start on anti-teleport grids */
                if (c_ptr->info & (CAVE_ICKY)) continue;
 
-               /* Done */
                break;
        }
 
@@ -139,7 +138,7 @@ void place_random_stairs(POSITION y, POSITION x)
 void place_random_door(POSITION y, POSITION x, bool room)
 {
        int tmp, type;
-       s16b feat = feat_none;
+       FEAT_IDX feat = feat_none;
        cave_type *c_ptr = &cave[y][x];
 
        /* Initialize mimic info */
@@ -223,7 +222,7 @@ void place_random_door(POSITION y, POSITION x, bool room)
 void place_closed_door(POSITION y, POSITION x, int type)
 {
        int tmp;
-       s16b feat = feat_none;
+       FEAT_IDX feat = feat_none;
 
        if (d_info[dungeon_type].flags1 & DF1_NO_DOORS)
        {
@@ -442,7 +441,7 @@ static int next_to_corr(POSITION y1, POSITION x1)
 * @return ドアを設置可能ならばTRUEを返す
 * @note Assumes "in_bounds(y1, x1)"
 * @details
-* XXX XXX XXX\n
+* \n
 * Assumes "in_bounds(y, x)"\n
 */
 static bool possible_doorway(POSITION y, POSITION x)
@@ -532,7 +531,7 @@ void place_floor(POSITION x1, POSITION x2, POSITION y1, POSITION y2, bool light)
  */
 void place_room(POSITION x1, POSITION x2, POSITION y1, POSITION y2, bool light)
 {
-       int y, x;
+       POSITION y, x;
 
        place_floor(x1, x2, y1, y2, light);
 
@@ -654,7 +653,6 @@ void vault_trap_aux(POSITION y, POSITION x, POSITION yd, POSITION xd)
                /* Place the trap */
                place_trap(y1, x1);
 
-               /* Done */
                break;
        }
 }