Fix 'localskin lua immersion' not working for mobj.skin

This commit is contained in:
indev committed 2026-11-20 21:18:30 +03:00
1 parent 86976192f1
commit af9a46d24a
1 file changed
+5 -1
+5 -1
View File
@@ -217,7 +217,11 @@ static int mobj_get(lua_State *L)
case mobj_skin: // skin name or nil, not struct
if (!mo->skin)
return 0;
lua_pushstring(L, ((skin_t *)mo->skin)->name);
// HUD ONLY!!!!!!!!!!
if (hud_running && cv_luaimmersion.value)
lua_pushstring(L, K_GetMobjSkin(mo)->name);
else
lua_pushstring(L, ((skin_t *)mo->skin)->name);
break;
case mobj_color:
lua_pushinteger(L, mo->color);