From e58bac8f476e5e96e683ae88d7ac6e3516b0a886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1rk=C3=B6zi=20Gergely=20J=C3=A1nos?= <cycss7@inf.elte.hu> Date: Mon, 9 May 2022 15:10:41 +0200 Subject: [PATCH] fix disabling of obstacle generation --- Assets/Scripts/Logic/Data/World/WorldGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Logic/Data/World/WorldGenerator.cs b/Assets/Scripts/Logic/Data/World/WorldGenerator.cs index 148a03a..bcaafe2 100644 --- a/Assets/Scripts/Logic/Data/World/WorldGenerator.cs +++ b/Assets/Scripts/Logic/Data/World/WorldGenerator.cs @@ -90,7 +90,7 @@ internal class WorldGenerator { } } - if (i == 0) { + if (i == 0 && _generateObstacles) { List<int> goodIndices = new List<int>(); for (int j = 0; j < _width; j++) { tp = new TilePosition(_height / 2, _width); -- GitLab