Remove fixed tile size requirements

This commit is contained in:
Elnu 2022-03-05 11:40:34 -08:00
parent 42c8414378
commit ba36ac45cb

View file

@ -72,8 +72,8 @@ class Block {
} }
std::vector<sf::Vector2i> get_tiles() { std::vector<sf::Vector2i> get_tiles() {
std::vector<sf::Vector2i>tiles = {}; std::vector<sf::Vector2i>tiles = {};
for (int y = 0; y < 2; y++) { for (int y = 0; y < type->grid.size(); y++) {
for (int x = 0; x < 4; x++) { for (int x = 0; x < type->grid[y].size(); x++) {
if (!type->grid[y][x]) { if (!type->grid[y][x]) {
continue; continue;
} }