Separate level flags for premapped and sokoban

This commit is contained in:
Pasi Kallinen
2023-10-29 12:35:32 +02:00
parent 638c487c59
commit 16ed7e49c3
13 changed files with 19 additions and 18 deletions

View File

@@ -1973,9 +1973,9 @@ warnreveal(void)
}
}
/* Pre-map the sokoban levels */
/* Pre-map (the sokoban) levels */
void
sokoban_detect(void)
premap_detect(void)
{
register coordxy x, y;
register struct trap *ttmp;
@@ -1997,9 +1997,6 @@ sokoban_detect(void)
for (ttmp = gf.ftrap; ttmp; ttmp = ttmp->ntrap) {
ttmp->tseen = 1;
map_trap(ttmp, 1);
/* set sokoban_rules when there is at least one pit or hole */
if (ttmp->ttyp == PIT || ttmp->ttyp == HOLE)
Sokoban = 1;
}
}