On pages 94 and 95 when defining the apply_vertical_tunnel and apply_horizontal_tunnel the following line casts to a usize. The try_idx method already returns a Option type so the cast is not needed?
self.map.tiles[idx as usize] = TileType::Floor;
On pages 94 and 95 when defining the apply_vertical_tunnel and apply_horizontal_tunnel the following line casts to a usize. The try_idx method already returns a Option type so the cast is not needed?
self.map.tiles[idx as usize] = TileType::Floor;