]> granicus.if.org Git - nethack/commitdiff
Restore the insect legs on Baalzebub's level.
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Thu, 9 Apr 2015 17:50:11 +0000 (13:50 -0400)
committerSean Hunt <scshunt@csclub.uwaterloo.ca>
Fri, 10 Apr 2015 13:14:23 +0000 (09:14 -0400)
src/sp_lev.c

index 9eef34a0f181ff4df6646470c8afd85dbd2edcf0..e23c9887134ef69311b476468cdba0e1b3eb0ccb 100644 (file)
@@ -5163,7 +5163,14 @@ next_opcode:
     link_doors_rooms();
     fill_rooms();
     remove_boundary_syms();
-    wallification(1, 0, COLNO-1, ROWNO-1);
+    /* FIXME: Ideally, we want this call to only cover areas of the map
+     * which were not inserted directly by the special level file (see
+     * the insect legs on Baalzebub's level, for instance). Since that
+     * is currently not possible, we overload the corrmaze flag for this
+     * purpose.
+     */
+    if (!level.flags.corrmaze)
+      wallification(1, 0, COLNO-1, ROWNO-1);
 
     count_features();