]> granicus.if.org Git - nethack/commitdiff
Lua: Fix getmap nodoor flag
authorPasi Kallinen <paxed@alt.org>
Sat, 3 Apr 2021 18:44:05 +0000 (21:44 +0300)
committerPasi Kallinen <paxed@alt.org>
Sat, 3 Apr 2021 18:44:05 +0000 (21:44 +0300)
src/nhlua.c

index e89d9889e0ae3e0982350917058bd6ab44b7ac45..d446b3e8c1e590a2d2c4ff843bbe2f78d6c3c36d 100644 (file)
@@ -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",