Chapter 20

This commit is contained in:
2022-01-29 14:14:34 +01:00
parent fdeabefd75
commit 62240a42c1
13 changed files with 75 additions and 27 deletions

View File

@@ -246,7 +246,7 @@ pub fn draw_map(ecs: &World, ctx: &mut Rltk) {
}
fn wall_glyph(map: &Map, x: i32, y: i32) -> FontCharType {
if x < 1 || x > map.width - 2 || y < 1 || y > map.height - 2 as i32 {
if x < 1 || x > map.width - 2 || y < 1 || y > map.height - 2_i32 {
return 35;
}
let mut mask: u8 = 0;