dungeon_overview adjustment

The dungeon_overview bits in the rm structure were being
clobbered by a run-length encoding save/restore because
they weren't taken into consideration.

This patch pulls that data out of the rm structure completely.

It also adjusts the run-length encoding checks to take the
candig bit into consideration and adds a comment to rm.h
reminding people to make run-length encoding adjustments
in save.c for any new bits that get added.
This commit is contained in:
nethack.allison
2009-10-21 03:05:53 +00:00
parent e8ca39ff07
commit 7c05c92eed
10 changed files with 33 additions and 20 deletions

View File

@@ -135,7 +135,7 @@ 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)
# define remember_topology(x,y) (lastseentyp[x][y] = levl[x][y].typ)
#else
# define remember_topology(levp) /*empty*/
#endif
@@ -193,7 +193,7 @@ magic_map_background(x, y, show)
lev->glyph = glyph;
if (show) show_glyph(x,y, glyph);
remember_topology(lev); /* DUNGEON_OVERVIEW */
remember_topology(x,y); /* DUNGEON_OVERVIEW */
}
/*
@@ -350,7 +350,7 @@ unmap_object(x, y)
else \
map_background(x,y,show); \
\
remember_topology(&levl[x][y]); /* DUNGEON_OVERVIEW */ \
remember_topology(x,y); /* DUNGEON_OVERVIEW */ \
}
void