diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 16:06:40 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-20 16:06:40 +0200 |
commit | 7c97899cefb5ed1dd3547b9800f96b5a4cb24bf6 (patch) | |
tree | d5919fca6288501561cafd6332ad2a72fb1183f4 /crawl-ref/source/l_los.cc | |
parent | fb872b6780842d10abf30d9fc1cff7273039b765 (diff) | |
download | crawl-ref-7c97899cefb5ed1dd3547b9800f96b5a4cb24bf6.tar.gz crawl-ref-7c97899cefb5ed1dd3547b9800f96b5a4cb24bf6.zip |
Move clua crawl_lib from clua to l_crawl.cc.
To avoid name clashes, rename dlua libs from *_lib to *_dlib.
Diffstat (limited to 'crawl-ref/source/l_los.cc')
-rw-r--r-- | crawl-ref/source/l_los.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crawl-ref/source/l_los.cc b/crawl-ref/source/l_los.cc index b4d0f86fa1..e83c9358c7 100644 --- a/crawl-ref/source/l_los.cc +++ b/crawl-ref/source/l_los.cc @@ -41,7 +41,7 @@ LUAFN(los_cell_see_cell) PLUARET(number, cell_see_cell(p, q)); } -const struct luaL_reg los_lib[] = +const struct luaL_reg los_dlib[] = { { "findray", los_find_ray }, { "cell_see_cell", los_cell_see_cell }, @@ -88,7 +88,7 @@ LUAFN(ray_pos) return (2); } -static const struct luaL_reg ray_lib[] = +static const struct luaL_reg ray_dlib[] = { { "accx", ray_accx }, { "accy", ray_accy }, @@ -100,6 +100,5 @@ static const struct luaL_reg ray_lib[] = void luaopen_ray(lua_State *ls) { -// luaopen_setmeta(ls, "ray", ray_lib, RAY_METATABLE); - clua_register_metatable(ls, RAY_METATABLE, ray_lib, lua_object_gc<ray_def>); + clua_register_metatable(ls, RAY_METATABLE, ray_dlib, lua_object_gc<ray_def>); } |