Fix is_door

master
Louis Pearson 2022-08-05 19:47:33 -06:00
parent c137c88cef
commit 9655abc120
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ pub const Tiles = struct {
pub const Trapdoor = 3; pub const Trapdoor = 3;
pub fn is_door(tile: u8) bool { pub fn is_door(tile: u8) bool {
return tile == 3 or tile == 4; return tile == Door or tile == Trapdoor;
} }
pub fn is_solid(tile: u8) bool { pub fn is_solid(tile: u8) bool {