diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-17 10:41:16 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-17 10:41:16 +0530 |
commit | 34d58cf8983364cfc3dc71d14a552e33ff087b5f (patch) | |
tree | 6b323863296fb8b2ef0248ade90b08c0dce73905 | |
parent | 4bbe9c5b6bd9f2d9706148b9e62b2d69e4e9ee0f (diff) | |
download | crawl-ref-34d58cf8983364cfc3dc71d14a552e33ff087b5f.tar.gz crawl-ref-34d58cf8983364cfc3dc71d14a552e33ff087b5f.zip |
All secondary vaults in the Swamp get an implicit water_ok tag, since they'll otherwise never be placed.
-rw-r--r-- | crawl-ref/source/maps.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/maps.cc b/crawl-ref/source/maps.cc index 0855eb5664..1aeefcfde5 100644 --- a/crawl-ref/source/maps.cc +++ b/crawl-ref/source/maps.cc @@ -337,7 +337,8 @@ bool map_safe_vault_place(const map_def &map, if (size.zero()) return (true); - const bool water_ok = map.has_tag("water_ok"); + const bool water_ok = + map.has_tag("water_ok") || player_in_branch(BRANCH_SWAMP); const std::vector<std::string> &lines = map.map.get_lines(); for (rectangle_iterator ri(c, c + size - 1); ri; ++ri) |