]> granicus.if.org Git - nethack/commitdiff
onefile: 'here'
authorPatR <rankin@nethack.org>
Tue, 13 Sep 2022 17:52:15 +0000 (10:52 -0700)
committerPatR <rankin@nethack.org>
Tue, 13 Sep 2022 17:52:15 +0000 (10:52 -0700)
extralev.c's 'here' macro was interferring with subsequent uses of
'here' in code from other files.

src/extralev.c

index 8904ad1402778776f3cbec6b52aa0320de82d050..86180178bf462dfbde2348cef88b781e5bbf0759 100644 (file)
@@ -22,6 +22,7 @@ void
 roguejoin(coordxy x1, coordxy y1, coordxy x2, coordxy y2, int horiz)
 {
     register coordxy x, y, middle;
+
     if (horiz) {
         middle = x1 + rn2(x2 - x1 + 1);
         for (x = min(x1, middle); x <= max(x1, middle); x++)
@@ -188,6 +189,7 @@ miniwalk(coordxy x, coordxy y)
         }
         miniwalk(x, y);
     }
+#undef doorhere
 }
 
 void
@@ -272,6 +274,7 @@ makeroguerooms(void)
             if (here.doortable & UP)
                 impossible("up end of %d, %d never connected?", x, y);
         }
+#undef here
 }
 
 void