diff --git a/src/lua_skinlib.c b/src/lua_skinlib.c index 403b18e3726d0aba3953632bf53e16fdf8f0ae56..13d41d55857572fb3da75e5720b7a138fb5e9732 100644 --- a/src/lua_skinlib.c +++ b/src/lua_skinlib.c @@ -221,21 +221,7 @@ static int skin_get(lua_State *L) LUA_PushUserdata(L, skin->sprites, META_SKINSPRITES); break; case skin_natkcolor: - if (skin->natkcolor) - { - lua_pushinteger(L, skin->natkcolor); - } - else - { - if (skin->flags & SF_SUPER) - { - lua_pushinteger(L, skin->supercolor+4); - } - else if (skin->flags & SF_NONIGHTSSUPER) - { - lua_pushinteger(L, skin->prefcolor); - } - } + lua_pushinteger(L, skin->natkcolor); break; } return 1;