From 5eafe8db943e32e6608bb7d946d7e1840efe198d Mon Sep 17 00:00:00 2001 From: Zwip-Zwap Zapony <zwipzwapzapony@gmail.com> Date: Mon, 16 Oct 2023 19:31:30 +0000 Subject: [PATCH] Expose exact value of natkcolor as opposed to equating it to exceptions --- src/lua_skinlib.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/lua_skinlib.c b/src/lua_skinlib.c index 403b18e372..13d41d5585 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; -- GitLab