diff options
author | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-14 17:42:50 -0600 |
---|---|---|
committer | Steve Melenchuk <smelenchuk@gmail.com> | 2013-05-14 17:51:12 -0600 |
commit | 01bfff9e3d299abcb226b88dc4e900597bd4d3db (patch) | |
tree | 12b88ecf8f799914150e3dea84d7cb7edfb4d163 /crawl-ref/source/l_dgnbld.cc | |
parent | a45499ba62926a823659172633c64b2d06d381fc (diff) | |
download | crawl-ref-01bfff9e3d299abcb226b88dc4e900597bd4d3db.tar.gz crawl-ref-01bfff9e3d299abcb226b88dc4e900597bd4d3db.zip |
Move layout_type specs to tags; get primary vault layout_ tags usable.
That is, primary vaults can now properly specify layout types they
should be used with with layout_ tags, and layouts now set the type
through a "layout_type_*" tag as opposed to through a Lua function call.
There were a couple of primary vaults that tried to use these
previously, which was non-functional; this should work now. A handful of
significant primary vaults also now specify layout types to illustrate
this functionality.
This also fixes up a couple of vaults that use layout_ tags to specify
layout names instead of types (which also doesn't work).
Diffstat (limited to 'crawl-ref/source/l_dgnbld.cc')
-rw-r--r-- | crawl-ref/source/l_dgnbld.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/l_dgnbld.cc b/crawl-ref/source/l_dgnbld.cc index 56b7f30114..1e8f31ebc8 100644 --- a/crawl-ref/source/l_dgnbld.cc +++ b/crawl-ref/source/l_dgnbld.cc @@ -1501,12 +1501,6 @@ static int dgn_width(lua_State *ls) PLUARET(number, lines.width()); } -LUAFN(dgn_layout_type) -{ - env.level_layout_types.insert(luaL_checkstring(ls, 2)); - return 0; -} - LUAFN(dgn_delve) { LINES(ls, 1, lines); @@ -1648,7 +1642,6 @@ const struct luaL_reg dgn_build_dlib[] = { "add_pools", &dgn_add_pools }, { "delve", &dgn_delve }, { "width", dgn_width }, - { "layout_type", &dgn_layout_type }, { "farthest_from", &dgn_farthest_from }, { "layout_basic", &dgn_layout_basic }, |