Skip to content
Snippets Groups Projects
Commit e58bac8f authored by Sárközi Gergely János's avatar Sárközi Gergely János
Browse files

fix disabling of obstacle generation

parent 636a80bd
No related branches found
No related tags found
No related merge requests found
Pipeline #30045 passed
...@@ -90,7 +90,7 @@ internal class WorldGenerator { ...@@ -90,7 +90,7 @@ internal class WorldGenerator {
} }
} }
if (i == 0) { if (i == 0 && _generateObstacles) {
List<int> goodIndices = new List<int>(); List<int> goodIndices = new List<int>();
for (int j = 0; j < _width; j++) { for (int j = 0; j < _width; j++) {
tp = new TilePosition(_height / 2, _width); tp = new TilePosition(_height / 2, _width);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment