-/* SCCS Id: @(#)bones.c 3.5 2007/03/01 */
+/* SCCS Id: @(#)bones.c 3.5 2007/06/25 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985,1993. */
/* NetHack may be freely redistributed. See license for details. */
levl[x][y].seenv = 0;
levl[x][y].waslit = 0;
levl[x][y].glyph = cmap_to_glyph(S_stone);
+#ifdef DUNGEON_OVERVIEW
+ levl[x][y].styp = 0;
+#endif
}
fd = create_bonesfile(&u.uz, &bonesid, whynot);
-/* SCCS Id: @(#)display.c 3.5 2007/01/26 */
+/* SCCS Id: @(#)display.c 3.5 2007/06/25 */
/* Copyright (c) Dean Luick, with acknowledgements to Kevin Darcy */
/* and Dave Cohrs, 1990. */
/* NetHack may be freely redistributed. See license for details. */
STATIC_DCL void FDECL(t_warn, (struct rm *));
STATIC_DCL int FDECL(wall_angle, (struct rm *));
+#ifdef DUNGEON_OVERVIEW
+# define remember_topology(levp) ((levp)->styp = (levp)->typ)
+#else
+# define remember_topology(levp) /*empty*/
+#endif
+
#ifdef INVISIBLE_OBJECTS
/*
* vobj_at()
if (level.flags.hero_memory)
lev->glyph = glyph;
if (show) show_glyph(x,y, glyph);
-#ifdef DUNGEON_OVERVIEW
- lev->styp = lev->typ;
-#endif /* DUNGEON_OVERVIEW */
+
+ remember_topology(lev); /* DUNGEON_OVERVIEW */
}
/*
map_trap(trap,show); \
else \
map_background(x,y,show); \
+ \
+ remember_topology(&levl[x][y]); /* DUNGEON_OVERVIEW */ \
}
void
/* if the hero is levitating or not. */
set_seenv(lev, u.ux, u.uy, x, y);
- if (Levitation && !Is_airlevel(&u.uz) && !Is_waterlevel(&u.uz)) {
+ if (!can_reach_floor(FALSE)) {
/*
* Levitation Rules. It is assumed that the hero can feel the state
* of the walls around herself and can tell if she is in a corridor,