summaryrefslogtreecommitdiff
path: root/dungeon
diff options
context:
space:
mode:
Diffstat (limited to 'dungeon')
-rw-r--r--dungeon/src/map.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/dungeon/src/map.rs b/dungeon/src/map.rs
index 7d79f7f..ade485e 100644
--- a/dungeon/src/map.rs
+++ b/dungeon/src/map.rs
@@ -51,7 +51,7 @@ impl Tile {
/// Returns if the tile is walkable
#[must_use]
pub const fn is_walkable(self) -> bool {
- matches!(self, Self::Air)
+ matches!(self, Self::Room | Self::Hallway | Self::Stairs)
}
// Index by u16
@@ -65,7 +65,8 @@ impl Display for Tile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let char = match self {
Self::Wall => '#',
- Self::Air => '.',
+ Self::Room => '.',
+ Self::Hallway => ',',
Self::Stairs => '>',
};
f.write_char(char)