From f2d9f843072aa4ea7e584aeab68b71c74152cefc Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 24 Apr 2020 18:11:27 +0100 Subject: [PATCH] revert to 16x16 rooms as that covers standard bitsy as well as bitsy hd --- src/room.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/room.rs b/src/room.rs index 34adf09..539e18d 100644 --- a/src/room.rs +++ b/src/room.rs @@ -137,8 +137,7 @@ impl Room { let mut exits = String::new(); let mut endings = String::new(); - let sqrt = (self.tiles.len() as f64).sqrt() as usize; // 8 for SD, 16 for HD - for line in self.tiles.chunks(sqrt) { + for line in self.tiles.chunks(16) { for tile in line { tiles.push_str(tile); if room_format == RoomFormat::CommaSeparated {