mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
allow use of P_IsFlagAtBase in HUD code, since it doesn't actually modify anything
This commit is contained in:
parent
1ddc04abc6
commit
70928120c2
1 changed files with 1 additions and 1 deletions
|
@ -2456,7 +2456,7 @@ static int lib_pFadeLight(lua_State *L)
|
||||||
static int lib_pIsFlagAtBase(lua_State *L)
|
static int lib_pIsFlagAtBase(lua_State *L)
|
||||||
{
|
{
|
||||||
mobjtype_t flag = luaL_checkinteger(L, 1);
|
mobjtype_t flag = luaL_checkinteger(L, 1);
|
||||||
NOHUD
|
//HUDSAFE
|
||||||
INLEVEL
|
INLEVEL
|
||||||
if (flag >= NUMMOBJTYPES)
|
if (flag >= NUMMOBJTYPES)
|
||||||
return luaL_error(L, "mobj type %d out of range (0 - %d)", flag, NUMMOBJTYPES-1);
|
return luaL_error(L, "mobj type %d out of range (0 - %d)", flag, NUMMOBJTYPES-1);
|
||||||
|
|
Loading…
Reference in a new issue