diff options
-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 } }; |