From d97f9b40b89ad85beb1ec5e5b77a40fdec4bba6d Mon Sep 17 00:00:00 2001 From: "s3607057 (Angus Niven)" Date: Sat, 2 Nov 2019 20:16:02 +1100 Subject: [PATCH] And a few more that I just realised should be there. --- Assets/Scripts/Map Generation/MapManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Map Generation/MapManager.cs b/Assets/Scripts/Map Generation/MapManager.cs index 3f18609..b003173 100644 --- a/Assets/Scripts/Map Generation/MapManager.cs +++ b/Assets/Scripts/Map Generation/MapManager.cs @@ -192,21 +192,24 @@ public class MapManager : ScriptableObject bool checkSegments(MapSection first, MapSection second) { - Debug.Log("Checking " + first.name + " & " + second.name); + Debug.Log("Checking " + first.name + " & " + second.name + ". DiffMin = " + second.difficultyMin + ", DiffMax = " + second.difficultyMax); int connections = 0; //No more than one link section in a row if (first.length == 1 && second.length == 1) { + Debug.Log("Disqualified: repeated link sections"); return false; } if (second.difficultyMax < difficulty || second.difficultyMin > difficulty) //Check that we're in the right difficulty range for this section { + Debug.Log("Disqualified: wrong difficulty"); return false; } if (second.widthIn < widthMin || second.widthIn > widthMax) //And that it's in the right width range { + Debug.Log("Disqualified: wrong width"); return false; }