summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dbg-maps.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-30 22:58:24 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-31 00:09:03 +0200
commit57aec7d2a0ae1095fb1babd8f0fcc276927bf8e5 (patch)
tree49101ac1f89ecfc1dfd662ff9dd1af5d2e96f003 /crawl-ref/source/dbg-maps.cc
parent4a749203263be27ef869e3921ea9628be4b04cfc (diff)
downloadcrawl-ref-57aec7d2a0ae1095fb1babd8f0fcc276927bf8e5.tar.gz
crawl-ref-57aec7d2a0ae1095fb1babd8f0fcc276927bf8e5.zip
Runed doors.
They're meant to stop autoexplore, and maybe request a confirmation for being opened. This is not yet implemented, but we can use them for converting secret doors that were used for marking a place as interesting.
Diffstat (limited to 'crawl-ref/source/dbg-maps.cc')
-rw-r--r--crawl-ref/source/dbg-maps.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-maps.cc b/crawl-ref/source/dbg-maps.cc
index 0fb5db3844..be3e4dc128 100644
--- a/crawl-ref/source/dbg-maps.cc
+++ b/crawl-ref/source/dbg-maps.cc
@@ -88,6 +88,19 @@ static bool mg_do_build_level(int niters)
continue;
}
+ for (int y = 0; y < GYM; ++y)
+ for (int x = 0; x < GXM; ++x)
+ {
+ switch (grd[x][y])
+ {
+ case DNGN_RUNED_DOOR:
+ grd[x][y] = DNGN_CLOSED_DOOR;
+ break;
+ default:
+ break;
+ }
+ }
+
{
unwind_bool wiz(you.wizard, true);
magic_mapping(1000, 100, true, true, false,