Reveal branch stairs only after traversing them

This commit is contained in:
Pasi Kallinen
2021-07-30 19:32:26 +03:00
parent 4f594659dc
commit d463a9e258
5 changed files with 20 additions and 8 deletions

View File

@@ -894,6 +894,7 @@ rest_stairs(NHFILE* nhfp)
int buflen = 0;
stairway stway = UNDEFINED_VALUES;
int len = 0;
stairway *newst;
stairway_free_all();
while (1) {
@@ -915,6 +916,9 @@ rest_stairs(NHFILE* nhfp)
}
stairway_add(stway.sx, stway.sy, stway.up, stway.isladder,
&(stway.tolev));
newst = stairway_at(stway.sx, stway.sy);
if (newst)
newst->u_traversed = stway.u_traversed;
}
}