diff options
author | Adam Borowski <kilobyte@angband.pl> | 2012-10-15 20:41:04 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-10-15 22:14:47 +0200 |
commit | 840f2d079fa55bb7bf019d1b5736aaaadc41e864 (patch) | |
tree | 8711304f35ca6d8108ae91e9fc050bdf79b11843 /crawl-ref/source/l_dgn.cc | |
parent | ee5c890eeacb04a59de547cb3ad0d6e824e62545 (diff) | |
download | crawl-ref-840f2d079fa55bb7bf019d1b5736aaaadc41e864.tar.gz crawl-ref-840f2d079fa55bb7bf019d1b5736aaaadc41e864.zip |
Remove dgn_resolve_map().
It has never been used, and it confuses people (at least fooled me wrt where
applying a vault begins and ends).
Diffstat (limited to 'crawl-ref/source/l_dgn.cc')
-rw-r--r-- | crawl-ref/source/l_dgn.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/crawl-ref/source/l_dgn.cc b/crawl-ref/source/l_dgn.cc index 22fbb207eb..86b7a9bc9a 100644 --- a/crawl-ref/source/l_dgn.cc +++ b/crawl-ref/source/l_dgn.cc @@ -1696,36 +1696,6 @@ LUAFN(dgn_is_validating) return 1; } -LUAFN(_dgn_resolve_map) -{ - if (lua_isnil(ls, 1)) - { - lua_pushnil(ls); - return 1; - } - - MAP(ls, 1, map); - const bool check_collisions = _lua_boolean(ls, 2, true); - - // Save the vault_placement into Temp_Vaults because the map_def - // will need to be alive through to the end of dungeon gen. - Temp_Vaults.push_back(vault_placement()); - - vault_placement &place(Temp_Vaults[Temp_Vaults.size() - 1]); - - if (vault_main(place, map, check_collisions) != MAP_NONE) - { - clua_push_map(ls, &place.map); - lua_pushlightuserdata(ls, &place); - } - else - { - lua_pushnil(ls); - lua_pushnil(ls); - } - return 2; -} - LUAFN(_dgn_reuse_map) { if (!lua_isuserdata(ls, 1)) @@ -1881,7 +1851,6 @@ const struct luaL_reg dgn_dlib[] = { "map_by_place", dgn_map_by_place }, { "place_map", _dgn_place_map }, { "reuse_map", _dgn_reuse_map }, -{ "resolve_map", _dgn_resolve_map }, { "in_vault", _dgn_in_vault }, { "map_parameters", _dgn_map_parameters }, |