From ce482ba2ba39010710dd3b63fb9c32db43336df3 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 3 Apr 2021 21:44:05 +0300 Subject: [PATCH] Lua: Fix getmap nodoor flag --- src/nhlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhlua.c b/src/nhlua.c index e89d9889e..d446b3e8c 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -330,7 +330,7 @@ nhl_getmap(lua_State *L) if (IS_DOOR(levl[x][y].typ)) { nhl_add_table_entry_bool(L, "nodoor", - (levl[x][y].flags & D_NODOOR)); + (levl[x][y].flags == D_NODOOR)); nhl_add_table_entry_bool(L, "broken", (levl[x][y].flags & D_BROKEN)); nhl_add_table_entry_bool(L, "isopen",