REVERSESUPER rises from the grave

This commit is contained in:
SMS Alfredo 2021-04-21 18:20:56 -05:00
parent 228668ce98
commit abc886b9ac
2 changed files with 7 additions and 0 deletions

View file

@ -264,6 +264,11 @@ static inline int lib_getenum(lua_State *L)
lua_pushinteger(L, ((lua_Integer)1<<i));
return 1;
}
if (fastcmp(p, "REVERSESUPER"))
{
lua_pushinteger(L, (lua_Integer)MFE_REVERSESUPER);
return 1;
}
if (mathlib) return luaL_error(L, "mobjeflag '%s' could not be found.\n", word);
return 0;
}

View file

@ -249,6 +249,8 @@ typedef enum
MFE_FORCESUPER = 1<<12,
// Forces an object to NOT use super sprites with SPR_PLAY.
MFE_FORCENOSUPER = 1<<13,
// Makes an object use super sprites where they wouldn't have otherwise and vice-versa
MFE_REVERSESUPER = MFE_FORCESUPER|MFE_FORCENOSUPER
// free: to and including 1<<15
} mobjeflag_t;