From 9d3ec11a74fd6f7274ba10c96148dd5c863649ba Mon Sep 17 00:00:00 2001 From: alf9310 Date: Mon, 10 Nov 2025 00:46:23 -0500 Subject: main: Slight merge conflict with Air resolved --- dungeon/src/map.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dungeon/src') 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) -- cgit v1.2.3-freya