Skip to content
Snippets Groups Projects
Commit abc886b9 authored by SMS Alfredo's avatar SMS Alfredo
Browse files

REVERSESUPER rises from the grave

parent 228668ce
Branches
Tags
1 merge request!1452Add MFE_FORCESUPER, MFE_FORCENOSUPER, and MFE_REVERSESUPER extra flags
...@@ -264,6 +264,11 @@ static inline int lib_getenum(lua_State *L) ...@@ -264,6 +264,11 @@ static inline int lib_getenum(lua_State *L)
lua_pushinteger(L, ((lua_Integer)1<<i)); lua_pushinteger(L, ((lua_Integer)1<<i));
return 1; 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); if (mathlib) return luaL_error(L, "mobjeflag '%s' could not be found.\n", word);
return 0; return 0;
} }
......
...@@ -249,6 +249,8 @@ typedef enum ...@@ -249,6 +249,8 @@ typedef enum
MFE_FORCESUPER = 1<<12, MFE_FORCESUPER = 1<<12,
// Forces an object to NOT use super sprites with SPR_PLAY. // Forces an object to NOT use super sprites with SPR_PLAY.
MFE_FORCENOSUPER = 1<<13, 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 // free: to and including 1<<15
} mobjeflag_t; } mobjeflag_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment