From efa480596af6a5d28ab87e5bd4185f995c70cf93 Mon Sep 17 00:00:00 2001 From: Enne Walker Date: Thu, 24 Dec 2009 19:44:42 -0500 Subject: [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. --- crawl-ref/source/maps.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/maps.cc') 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); -- cgit v1.2.3-54-g00ecf