Skip to content
Snippets Groups Projects
Commit b5636d9d authored by sphere's avatar sphere
Browse files

Merge branch 'lua-supername' into 'next'

Expose skin.supername to Lua

See merge request !2138
parents afee1cb6 11a2fe86
No related branches found
No related tags found
1 merge request!2138Expose skin.supername to Lua
...@@ -25,6 +25,7 @@ enum skin { ...@@ -25,6 +25,7 @@ enum skin {
skin_flags, skin_flags,
skin_realname, skin_realname,
skin_hudname, skin_hudname,
skin_supername,
skin_ability, skin_ability,
skin_ability2, skin_ability2,
skin_thokitem, skin_thokitem,
...@@ -63,6 +64,7 @@ static const char *const skin_opt[] = { ...@@ -63,6 +64,7 @@ static const char *const skin_opt[] = {
"flags", "flags",
"realname", "realname",
"hudname", "hudname",
"supername",
"ability", "ability",
"ability2", "ability2",
"thokitem", "thokitem",
...@@ -126,6 +128,9 @@ static int skin_get(lua_State *L) ...@@ -126,6 +128,9 @@ static int skin_get(lua_State *L)
case skin_hudname: case skin_hudname:
lua_pushstring(L, skin->hudname); lua_pushstring(L, skin->hudname);
break; break;
case skin_supername:
lua_pushstring(L, skin->supername);
break;
case skin_ability: case skin_ability:
lua_pushinteger(L, skin->ability); lua_pushinteger(L, skin->ability);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment