From 77a90402d1f3d508eb018140c1ee696aa370941a Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Thu, 25 Jun 2009 08:39:26 +0000 Subject: 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 --- crawl-ref/source/arena.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/arena.cc') 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:"); -- cgit v1.2.3-54-g00ecf