From abc886b9ac25cd5528142b09c62498b335f3c22f Mon Sep 17 00:00:00 2001 From: SMS Alfredo <65426124+SMS-Alfredo@users.noreply.github.com> Date: Wed, 21 Apr 2021 18:20:56 -0500 Subject: [PATCH] REVERSESUPER rises from the grave --- src/deh_lua.c | 5 +++++ src/p_mobj.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/deh_lua.c b/src/deh_lua.c index e6a436421c..e920154ccf 100644 --- a/src/deh_lua.c +++ b/src/deh_lua.c @@ -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; } diff --git a/src/p_mobj.h b/src/p_mobj.h index c4567c27d5..d7da26a695 100644 --- a/src/p_mobj.h +++ b/src/p_mobj.h @@ -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; -- GitLab