fix this copy-paste job

This commit is contained in:
Max Bradbury 2020-04-11 22:40:38 +01:00
parent bea7a6aa4e
commit e547cd341f
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ fn test_image_from_string() {
fn image_to_string(image: Image) -> String {
let mut string = String::new();
let sqrt = (room.tiles.len() as f64).sqrt() as usize; // 8 for SD, 16 for HD
let sqrt = (image.pixels.len() as f64).sqrt() as usize; // 8 for SD, 16 for HD
for line in image.pixels.chunks(sqrt) {
for pixel in line {
string.push_str(&format!("{}", *pixel));