Skip to content
Snippets Groups Projects
Commit 67acb6e4 authored by Nev3r's avatar Nev3r
Browse files

Add Lua support.

parent 7cf08e1a
No related branches found
No related tags found
2 merge requests!1075Merge udmf-next into next,!883Add mapthing scale support
...@@ -775,6 +775,8 @@ static int mapthing_get(lua_State *L) ...@@ -775,6 +775,8 @@ static int mapthing_get(lua_State *L)
number = mt->type; number = mt->type;
else if(fastcmp(field,"options")) else if(fastcmp(field,"options"))
number = mt->options; number = mt->options;
else if(fastcmp(field,"scale"))
number = mt->scale;
else if(fastcmp(field,"z")) else if(fastcmp(field,"z"))
number = mt->z; number = mt->z;
else if(fastcmp(field,"extrainfo")) else if(fastcmp(field,"extrainfo"))
...@@ -814,6 +816,8 @@ static int mapthing_set(lua_State *L) ...@@ -814,6 +816,8 @@ static int mapthing_set(lua_State *L)
mt->type = (UINT16)luaL_checkinteger(L, 3); mt->type = (UINT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"options")) else if(fastcmp(field,"options"))
mt->options = (UINT16)luaL_checkinteger(L, 3); mt->options = (UINT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"scale"))
mt->scale = luaL_checkfixed(L, 3);
else if(fastcmp(field,"z")) else if(fastcmp(field,"z"))
mt->z = (INT16)luaL_checkinteger(L, 3); mt->z = (INT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"extrainfo")) else if(fastcmp(field,"extrainfo"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment