summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/render.rs')
-rw-r--r--graphics/src/render.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 89f9dc3..613763c 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -114,7 +114,7 @@ const ATLAS_FLOOR_EXT3: (u16, u16) = (2, 2);
const ATLAS_FLOOR_EXT4: (u16, u16) = (3, 2);
// Misc atlas.bmp textures
-//const ATLAS_ERROR: (u16, u16) = (3, 3);
+const ATLAS_ERROR: (u16, u16) = (3, 3);
/// Full source rec for any texture
const FULL_SOURCE_REC: Rectangle = rect! {
@@ -400,7 +400,7 @@ impl Renderer {
Tile::Wall => ATLAS_WALL_SIDE,
Tile::Room | Tile::Hallway => ATLAS_FLOOR,
Tile::Stairs => ATLAS_STAIR,
- //_ => ATLAS_ERROR,
+ Tile::Chest(_) => ATLAS_ERROR,
};
rt.draw_atlas(
&self.textures.atlas,
@@ -453,6 +453,7 @@ impl Renderer {
Tile::Room => Color::GRAY,
Tile::Hallway => Color::GRAY,
Tile::Stairs => Color::WHITE,
+ Tile::Chest(_) => Color::BLUE,
};
rt.draw_pixel(x.into(), y.into(), color);
}