more work on level generators

This commit is contained in:
2024-11-05 12:02:45 +01:00
parent 5311f56ca0
commit 72f7be2ed8
3 changed files with 58 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ impl Level {
return (None, None, None);
}
if !self.discovered[x][y] {
#[cfg(test)]
// #[cfg(test)]
return (Some(StructureElement::Unknown), None, None);
}
let search_pos = &Position::new(self.level, x, y);