From 70928120c26b38f8bba06bcacfd753b78fbab7dd Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Tue, 1 Aug 2023 12:45:58 +0100
Subject: [PATCH] allow use of P_IsFlagAtBase in HUD code, since it doesn't
 actually modify anything

---
 src/lua_baselib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua_baselib.c b/src/lua_baselib.c
index bf3fd1decc..915669bb27 100644
--- a/src/lua_baselib.c
+++ b/src/lua_baselib.c
@@ -2456,7 +2456,7 @@ static int lib_pFadeLight(lua_State *L)
 static int lib_pIsFlagAtBase(lua_State *L)
 {
 	mobjtype_t flag = luaL_checkinteger(L, 1);
-	NOHUD
+	//HUDSAFE
 	INLEVEL
 	if (flag >= NUMMOBJTYPES)
 		return luaL_error(L, "mobj type %d out of range (0 - %d)", flag, NUMMOBJTYPES-1);
-- 
GitLab