stairway save/restore bit
The logic surrounding stairway saves and restores should not be within a block reserved for deliminating external file structure.
This commit is contained in:
@@ -923,15 +923,14 @@ NHFILE *nhfp;
|
||||
if (buflen == -1)
|
||||
break;
|
||||
|
||||
len += (int) sizeof (stairway);
|
||||
if (nhfp->structlevel) {
|
||||
len += (int) sizeof (stairway);
|
||||
mread(nhfp->fd, (genericptr_t) &stway, sizeof (stairway));
|
||||
if (stway.tolev.dnum == u.uz.dnum) {
|
||||
/* stairway dlevel is relative, make it absolute */
|
||||
stway.tolev.dlevel += u.uz.dlevel;
|
||||
}
|
||||
}
|
||||
|
||||
if (stway.tolev.dnum == u.uz.dnum) {
|
||||
/* stairway dlevel is relative, make it absolute */
|
||||
stway.tolev.dlevel += u.uz.dlevel;
|
||||
}
|
||||
stairway_add(stway.sx, stway.sy, stway.up, stway.isladder,
|
||||
&(stway.tolev));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user