Merge branch 'lua-supername' into 'next'

Expose skin.supername to Lua

See merge request STJr/SRB2!2138
This commit is contained in:
sphere 2023-09-08 17:51:19 +00:00
commit b5636d9dc9

View file

@ -25,6 +25,7 @@ enum skin {
skin_flags,
skin_realname,
skin_hudname,
skin_supername,
skin_ability,
skin_ability2,
skin_thokitem,
@ -63,6 +64,7 @@ static const char *const skin_opt[] = {
"flags",
"realname",
"hudname",
"supername",
"ability",
"ability2",
"thokitem",
@ -126,6 +128,9 @@ static int skin_get(lua_State *L)
case skin_hudname:
lua_pushstring(L, skin->hudname);
break;
case skin_supername:
lua_pushstring(L, skin->supername);
break;
case skin_ability:
lua_pushinteger(L, skin->ability);
break;