Remove fixed tile size requirements
This commit is contained in:
parent
42c8414378
commit
ba36ac45cb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue