diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-05-29 04:09:26 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-05-29 04:09:44 +0100 |
commit | e33ce555e375e82069c053e1d8ac1cd053ad1c03 (patch) | |
tree | 055918e9ad2170963a7785ccc0f2a442de1f07a9 /crawl-ref/source/l_dgn.cc | |
parent | f52a1207e2d20f62569b146db0c737e5702e74db (diff) | |
download | crawl-ref-e33ce555e375e82069c053e1d8ac1cd053ad1c03.tar.gz crawl-ref-e33ce555e375e82069c053e1d8ac1cd053ad1c03.zip |
Add a CLEAR directive for map files
The syntax is as follows:
CLEAR: xyz
This will substitute the glyphs x, y and z for ' ' i.e.
the space character, becoming not part of the map.
Diffstat (limited to 'crawl-ref/source/l_dgn.cc')
-rw-r--r-- | crawl-ref/source/l_dgn.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/l_dgn.cc b/crawl-ref/source/l_dgn.cc index 972236ae54..d7c9374ee0 100644 --- a/crawl-ref/source/l_dgn.cc +++ b/crawl-ref/source/l_dgn.cc @@ -340,6 +340,11 @@ static int dgn_shuffle(lua_State *ls) return dgn_map_add_transform(ls, &map_lines::add_shuffle); } +static int dgn_clear(lua_State *ls) +{ + return dgn_map_add_transform(ls, &map_lines::add_clear); +} + static int dgn_subst(lua_State *ls) { return dgn_map_add_transform(ls, &map_lines::add_subst); @@ -1854,6 +1859,7 @@ const struct luaL_reg dgn_dlib[] = { "depth_weight", dgn_depth_weight }, { "orient", dgn_orient }, { "shuffle", dgn_shuffle }, +{ "clear", dgn_clear }, { "subst", dgn_subst }, { "nsubst", dgn_nsubst }, { "colour", dgn_colour }, |