From: Pasi Kallinen Date: Sat, 3 Apr 2021 18:44:05 +0000 (+0300) Subject: Lua: Fix getmap nodoor flag X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce482ba2ba39010710dd3b63fb9c32db43336df3;p=nethack Lua: Fix getmap nodoor flag --- 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",