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:
@@ -567,13 +567,13 @@ doopen() /* try to open a door */
|
||||
if (Blind) {
|
||||
int oldglyph = door->glyph;
|
||||
#ifdef DUNGEON_OVERVIEW
|
||||
schar oldstyp = door->styp;
|
||||
schar oldlastseentyp = lastseentyp[cc.x][cc.y];
|
||||
#endif
|
||||
|
||||
feel_location(cc.x, cc.y);
|
||||
if (door->glyph != oldglyph
|
||||
#ifdef DUNGEON_OVERVIEW
|
||||
|| door->styp != oldstyp
|
||||
|| lastseentyp[cc.x][cc.y] != oldlastseentyp
|
||||
#endif
|
||||
) res = 1; /* learned something */
|
||||
}
|
||||
@@ -695,13 +695,13 @@ doclose() /* try to close a door */
|
||||
if (Blind) {
|
||||
int oldglyph = door->glyph;
|
||||
#ifdef DUNGEON_OVERVIEW
|
||||
schar oldstyp = door->styp;
|
||||
schar oldlastseentyp = lastseentyp[x][y];
|
||||
#endif
|
||||
|
||||
feel_location(x, y);
|
||||
if (door->glyph != oldglyph
|
||||
#ifdef DUNGEON_OVERVIEW
|
||||
|| door->styp != oldstyp
|
||||
|| lastseentyp[x][y] != oldlastseentyp
|
||||
#endif
|
||||
) res = 1; /* learned something */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user