Formatting
This commit is contained in:
parent
209c56ec50
commit
b62df4c79d
|
@ -109,11 +109,7 @@ impl Display for DungeonLevel {
|
|||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
for y in 0..LEVEL_SIZE.1 {
|
||||
for x in 0..LEVEL_SIZE.0 {
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
self.render_tile(x, y)
|
||||
)?;
|
||||
write!(f, "{}", self.render_tile(x, y))?;
|
||||
}
|
||||
|
||||
write!(f, "\n")?;
|
||||
|
|
|
@ -138,7 +138,9 @@ impl RoomBounds {
|
|||
);
|
||||
|
||||
let new_room = Self { ul_corner, size };
|
||||
if v.iter().all(|room| !room.near(&new_room, ROOM_MIN_DISTANCE)) {
|
||||
if v.iter()
|
||||
.all(|room| !room.near(&new_room, ROOM_MIN_DISTANCE))
|
||||
{
|
||||
v.push(new_room)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue