summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_dgn.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-03-26 22:07:12 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-03-26 22:07:12 +0200
commit34ac192565a93bd76da772caaf5409324a5ee7a7 (patch)
tree20fb1d720e0b2a2c10ddb3e1e188e731e27972bd /crawl-ref/source/l_dgn.cc
parente7bc353f8c79fcbf9c8e2575b5246ca31beb3e79 (diff)
downloadcrawl-ref-34ac192565a93bd76da772caaf5409324a5ee7a7.tar.gz
crawl-ref-34ac192565a93bd76da772caaf5409324a5ee7a7.zip
Let PLACE: selectors use level ranges as well.
This usually makes little sense, but can be good for absdepth ones (PLACE: Bedlam:1, !10-), and it removes the need to implement :$ support for PLACE: in a different way.
Diffstat (limited to 'crawl-ref/source/l_dgn.cc')
-rw-r--r--crawl-ref/source/l_dgn.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/l_dgn.cc b/crawl-ref/source/l_dgn.cc
index 2799774bcb..9d4186910e 100644
--- a/crawl-ref/source/l_dgn.cc
+++ b/crawl-ref/source/l_dgn.cc
@@ -111,7 +111,7 @@ static int dgn_place(lua_State *ls)
{
try
{
- map->place = level_id::parse_level_id(luaL_checkstring(ls, 2));
+ map->place = depth_ranges::parse_depth_ranges(luaL_checkstring(ls, 2));
}
catch (const std::string &err)
{