From ba36ac45cb51a483ecb0487bb9b88a8d4ed150d5 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 5 Mar 2022 11:40:34 -0800 Subject: [PATCH] Remove fixed tile size requirements --- src/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index 879fe3c..29b03bd 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -72,8 +72,8 @@ class Block { } std::vector get_tiles() { std::vectortiles = {}; - for (int y = 0; y < 2; y++) { - for (int x = 0; x < 4; x++) { + for (int y = 0; y < type->grid.size(); y++) { + for (int x = 0; x < type->grid[y].size(); x++) { if (!type->grid[y][x]) { continue; }