summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dlua.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-19 23:20:59 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-19 23:22:39 +0200
commit8e94f180081dc6d88069afefe9a7f92828d32729 (patch)
treec9fef59c6914a106fe51fba5575031a8d1e7266b /crawl-ref/source/dlua.cc
parent8e048c2d18e3b0032ae7e1442f1a2500cba3a3aa (diff)
downloadcrawl-ref-8e94f180081dc6d88069afefe9a7f92828d32729.tar.gz
crawl-ref-8e94f180081dc6d88069afefe9a7f92828d32729.zip
Split out lib_mapmark from dlua.cc.
Diffstat (limited to 'crawl-ref/source/dlua.cc')
-rw-r--r--crawl-ref/source/dlua.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/crawl-ref/source/dlua.cc b/crawl-ref/source/dlua.cc
index 718438b9e9..b83dad752c 100644
--- a/crawl-ref/source/dlua.cc
+++ b/crawl-ref/source/dlua.cc
@@ -342,35 +342,6 @@ static void luaopen_dgnevent(lua_State *ls)
luaopen_setmeta(ls, "dgnevent", dgnevent_lib, DEVENT_METATABLE);
}
-static int mapmarker_pos(lua_State *ls)
-{
- MAPMARKER(ls, 1, mark);
- lua_pushnumber(ls, mark->pos.x);
- lua_pushnumber(ls, mark->pos.y);
- return (2);
-}
-
-static int mapmarker_move(lua_State *ls)
-{
- MAPMARKER(ls, 1, mark);
- const coord_def dest( luaL_checkint(ls, 2), luaL_checkint(ls, 3) );
- env.markers.move_marker(mark, dest);
- return (0);
-}
-
-static const struct luaL_reg mapmarker_lib[] =
-{
- { "pos", mapmarker_pos },
- { "move", mapmarker_move },
- { NULL, NULL }
-};
-
-static void luaopen_mapmarker(lua_State *ls)
-{
- luaopen_setmeta(ls, "mapmarker", mapmarker_lib, MAPMARK_METATABLE);
-}
-
-
// Return the integer stored in the table (on the stack) with the key name.
// If the key doesn't exist or the value is the wrong type, return defval.
static int _table_int(lua_State *ls, int idx, const char *name, int defval)