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

Add mapthing pitch/roll Lua access as well.

parent 0147320f
No related branches found
No related tags found
2 merge requests!1075Merge udmf-next into next,!882Add textmap pitch and roll parsing, and mobj pitch and roll variables.
...@@ -786,6 +786,10 @@ static int mapthing_get(lua_State *L) ...@@ -786,6 +786,10 @@ static int mapthing_get(lua_State *L)
number = mt->y; number = mt->y;
else if(fastcmp(field,"angle")) else if(fastcmp(field,"angle"))
number = mt->angle; number = mt->angle;
else if(fastcmp(field,"pitch"))
number = mt->pitch;
else if(fastcmp(field,"roll"))
number = mt->roll;
else if(fastcmp(field,"type")) else if(fastcmp(field,"type"))
number = mt->type; number = mt->type;
else if(fastcmp(field,"options")) else if(fastcmp(field,"options"))
...@@ -825,6 +829,10 @@ static int mapthing_set(lua_State *L) ...@@ -825,6 +829,10 @@ static int mapthing_set(lua_State *L)
mt->y = (INT16)luaL_checkinteger(L, 3); mt->y = (INT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"angle")) else if(fastcmp(field,"angle"))
mt->angle = (INT16)luaL_checkinteger(L, 3); mt->angle = (INT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"pitch"))
mt->pitch = (INT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"roll"))
mt->roll = (INT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"type")) else if(fastcmp(field,"type"))
mt->type = (UINT16)luaL_checkinteger(L, 3); mt->type = (UINT16)luaL_checkinteger(L, 3);
else if(fastcmp(field,"options")) else if(fastcmp(field,"options"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment