]> granicus.if.org Git - nethack/commitdiff
fix warning differently mklev.c
authornhmall <nhmall@nethack.org>
Tue, 26 Jan 2021 13:48:38 +0000 (08:48 -0500)
committernhmall <nhmall@nethack.org>
Tue, 26 Jan 2021 13:48:38 +0000 (08:48 -0500)
src/mklev.c

index 5806a340b8e67076a73e078727228dbf14701ea8..45663bb992aac97f739a89b7e718832c7c1c7090 100644 (file)
@@ -1250,7 +1250,7 @@ xchar x, y; /* location */
     coord m = {0};
     d_level *dest;
     boolean make_stairs;
-    /* struct mkroom *br_room; */
+    struct mkroom *br_room;
 
     /*
      * Return immediately if there is no branch to make or we have
@@ -1261,13 +1261,14 @@ xchar x, y; /* location */
     if (!br || g.made_branch)
         return;
 
+    nhUse(br_room);
     if (!x) { /* find random coordinates for branch */
         /* br_room = find_branch_room(&m); */
         (void) find_branch_room(&m);  /* sets m via mazexy() or somexy() */
         x = m.x;
         y = m.y;
     } else {
-        /* br_room = pos_to_room(x, y); */
+        br_room = pos_to_room(x, y);
     }
 
     if (on_level(&br->end1, &u.uz)) {