diff options
author | Vsevolod Kozlov <zaba@wybt.net> | 2012-05-21 15:26:23 +0400 |
---|---|---|
committer | Vsevolod Kozlov <zaba@wybt.net> | 2012-05-24 17:19:57 +0400 |
commit | 2e49416ddee1676eab576f5ad6a81ab472caa555 (patch) | |
tree | 8c107bbdb012600c6e45f0dde5ca6d6b85d11072 /crawl-ref/source/l_dgn.cc | |
parent | defa8e540b49dc39fc671340e8e478c132188bb1 (diff) | |
download | crawl-ref-2e49416ddee1676eab576f5ad6a81ab472caa555.tar.gz crawl-ref-2e49416ddee1676eab576f5ad6a81ab472caa555.zip |
Change 'clobber' to 'check_collision' in _build_secondary_vault and things that call it.
To make it consistent with the functions called by it.
Diffstat (limited to 'crawl-ref/source/l_dgn.cc')
-rw-r--r-- | crawl-ref/source/l_dgn.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/l_dgn.cc b/crawl-ref/source/l_dgn.cc index 813345a844..25339c262e 100644 --- a/crawl-ref/source/l_dgn.cc +++ b/crawl-ref/source/l_dgn.cc @@ -1559,7 +1559,7 @@ LUAFN(dgn_map_by_place) LUAFN(_dgn_place_map) { MAP(ls, 1, map); - const bool clobber = _lua_boolean(ls, 2, false); + const bool check_collision = _lua_boolean(ls, 2, true); const bool no_exits = _lua_boolean(ls, 3, false); coord_def where(-1, -1); if (lua_isnumber(ls, 4) && lua_isnumber(ls, 5)) @@ -1567,7 +1567,7 @@ LUAFN(_dgn_place_map) COORDS(c, 4, 5); where = c; } - if (dgn_place_map(map, clobber, no_exits, where) + if (dgn_place_map(map, check_collision, no_exits, where) && !env.level_vaults.empty()) { lua_pushlightuserdata(ls, |