summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.cc
diff options
context:
space:
mode:
authorEnne Walker <ennewalker@users.sourceforge.net>2009-12-24 19:44:42 -0500
committerEnne Walker <ennewalker@users.sourceforge.net>2009-12-24 19:47:01 -0500
commitefa480596af6a5d28ab87e5bd4185f995c70cf93 (patch)
tree4b0e7305fd54a4a3da305f3afd45cf4e2de725f1 /crawl-ref/source/maps.cc
parent9fc99a71b4cef054f5cf2b350fb427119bbd02fc (diff)
downloadcrawl-ref-efa480596af6a5d28ab87e5bd4185f995c70cf93.tar.gz
crawl-ref-efa480596af6a5d28ab87e5bd4185f995c70cf93.zip
[160] Fixing vaults not spawning in Pan.
Because layout vaults were changed to be true vaults rather than just writing to grd, they also wrote MMT_OPAQUE. This caused vault placement to fail (usually) on top of the layout vaults. Fixed by letting MMT_VAULT be the only mask that causes vault placement to fail.
Diffstat (limited to 'crawl-ref/source/maps.cc')
-rw-r--r--crawl-ref/source/maps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc
index 42006436f7..07da121e02 100644
--- a/crawl-ref/source/maps.cc
+++ b/crawl-ref/source/maps.cc
@@ -337,7 +337,7 @@ static bool _safe_vault_place(const map_def &map,
if (lines[dp.y][dp.x] == ' ')
continue;
- if (dgn_Map_Mask[cp.x][cp.y])
+ if (dgn_Map_Mask[cp.x][cp.y] == MMT_VAULT)
return (false);
const dungeon_feature_type dfeat = grd(cp);