]> granicus.if.org Git - nethack/commitdiff
another bit of reformatting
authorPatR <rankin@nethack.org>
Wed, 26 Oct 2022 08:22:00 +0000 (01:22 -0700)
committerPatR <rankin@nethack.org>
Wed, 26 Oct 2022 08:22:00 +0000 (01:22 -0700)
src/mkmaze.c

index e283ea24dc9f87c05398f24931d96b4822cafc3c..69d104f06dad1f223a0ab33169ee16e34731bb92 100644 (file)
@@ -275,7 +275,7 @@ okay(coordxy x, coordxy y, coordxy dir)
 
 /* find random starting point for maze generation */
 static void
-maze0xy(coord * cc)
+maze0xy(coord *cc)
 {
     cc->x = 3 + 2 * rn2((g.x_maze_max >> 1) - 1);
     cc->y = 3 + 2 * rn2((g.y_maze_max >> 1) - 1);
@@ -285,15 +285,18 @@ maze0xy(coord * cc)
 /*
  * Bad if:
  *      pos is occupied OR
- *      pos is inside restricted region (lx,ly,hx,hy) OR
+ *      pos is inside restricted region (nlx,nly,nhx,nhy) OR
  *      NOT (pos is corridor and a maze level OR pos is a room OR pos is air)
  */
 boolean
-bad_location(coordxy x, coordxy y, coordxy lx, coordxy ly, coordxy hx, coordxy hy)
+bad_location(
+    coordxy x, coordxy y,
+    coordxy nlx, coordxy nly, coordxy nhx, coordxy nhy)
 {
     return (boolean) (occupied(x, y)
-                      || within_bounded_area(x, y, lx, ly, hx, hy)
-                      || !((levl[x][y].typ == CORR && g.level.flags.is_maze_lev)
+                      || within_bounded_area(x, y, nlx, nly, nhx, nhy)
+                      || !((levl[x][y].typ == CORR
+                            && g.level.flags.is_maze_lev)
                            || levl[x][y].typ == ROOM
                            || levl[x][y].typ == AIR));
 }
@@ -303,7 +306,7 @@ bad_location(coordxy x, coordxy y, coordxy lx, coordxy ly, coordxy hx, coordxy h
 void
 place_lregion(
     coordxy lx, coordxy ly, coordxy hx, coordxy hy,
-    coordxy nlx, coordxy nly, coordxy nhx,coordxy nhy,
+    coordxy nlx, coordxy nly, coordxy nhx, coordxy nhy,
     xint16 rtype,
     d_level *lev)
 {