]> granicus.if.org Git - nethack/commitdiff
Iron bars, water and lava are not interesting for travel
authorPasi Kallinen <paxed@alt.org>
Thu, 6 Oct 2016 10:33:54 +0000 (13:33 +0300)
committerPasi Kallinen <paxed@alt.org>
Thu, 6 Oct 2016 10:33:54 +0000 (13:33 +0300)
src/do_name.c

index 9560071a01d1b7b5231e871f4094b8aa0257b799..e55caf1d36d831f7a95a951d910cb5cac3f83680 100644 (file)
@@ -239,10 +239,13 @@ int x,y, gloc;
             || !(glyph_is_cmap(glyph)
                  && (is_cmap_wall(glyph_to_cmap(glyph))
                      || glyph_to_cmap(glyph) == S_tree
+                     || glyph_to_cmap(glyph) == S_bars
                      || glyph_to_cmap(glyph) == S_ice
                      || glyph_to_cmap(glyph) == S_air
                      || glyph_to_cmap(glyph) == S_cloud
-                     || (glyph_to_cmap(glyph) == S_water && Is_waterlevel(&u.uz))
+                     || glyph_to_cmap(glyph) == S_lava
+                     || glyph_to_cmap(glyph) == S_water
+                     || glyph_to_cmap(glyph) == S_pool
                      || glyph_to_cmap(glyph) == S_ndoor
                      || glyph_to_cmap(glyph) == S_room
                      || glyph_to_cmap(glyph) == S_darkroom