Separate level flags for premapped and sokoban
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user