diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-02 00:00:46 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2010-01-02 00:00:46 +1000 |
commit | 234b5adf1d4e7f91e312c18fb4dde6a9ada3d721 (patch) | |
tree | f88890695a90fccdec3928f3d95fce7f5b533d28 /crawl-ref | |
parent | 27eb1eb69656fae951122563fab9d8b2ea37aae6 (diff) | |
download | crawl-ref-234b5adf1d4e7f91e312c18fb4dde6a9ada3d721.tar.gz crawl-ref-234b5adf1d4e7f91e312c18fb4dde6a9ada3d721.zip |
Remove wrapper for Lua map markers.
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/l_mapmrk.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/l_mapmrk.cc b/crawl-ref/source/l_mapmrk.cc index c297eacd57..40fd5a675a 100644 --- a/crawl-ref/source/l_mapmrk.cc +++ b/crawl-ref/source/l_mapmrk.cc @@ -22,10 +22,18 @@ static int mapmarker_move(lua_State *ls) return (0); } +static int mapmarker_remove(lua_State *ls) +{ + MAPMARKER(ls, 1, mark); + env.markers.remove(mark); + return (0); +} + const struct luaL_reg mapmarker_dlib[] = { { "pos", mapmarker_pos }, { "move", mapmarker_move }, +{ "remove", mapmarker_remove }, { NULL, NULL } }; |