diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-25 08:39:26 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-06-25 08:39:26 +0000 |
commit | 77a90402d1f3d508eb018140c1ee696aa370941a (patch) | |
tree | 9de399d464c19baa44fbb195357450ce94e9d36d /crawl-ref/source/arena.cc | |
parent | 6336c1634c0ae822f5096c33c92caa2219c1a7de (diff) | |
download | crawl-ref-77a90402d1f3d508eb018140c1ee696aa370941a.tar.gz crawl-ref-77a90402d1f3d508eb018140c1ee696aa370941a.zip |
Improve the documentation a bit.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10037 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/arena.cc')
-rw-r--r-- | crawl-ref/source/arena.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/arena.cc b/crawl-ref/source/arena.cc index 303d93fd55..87020c4c2d 100644 --- a/crawl-ref/source/arena.cc +++ b/crawl-ref/source/arena.cc @@ -341,7 +341,8 @@ namespace arena std::string arena_place = strip_tag_prefix(spec, "arena_place:"); if (!arena_place.empty()) { - try { + try + { place = level_id::parse_level_id(arena_place); } catch (const std::string &err) @@ -350,12 +351,17 @@ namespace arena arena_place.c_str(), err.c_str()); } + if (place.level_type == LEVEL_LABYRINTH) + { throw (std::string("Can't set arena place to the " "labyrinth.")); + } else if (place.level_type == LEVEL_PORTAL_VAULT) + { throw (std::string("Can't set arena place to a portal " "vault.")); + } } std::string glyphs = strip_tag_prefix(spec, "ban_glyphs:"); |