Browse Source

Default all roads to random (optional)

Tomasz Zieliński 2 months ago
parent
commit
5ecaf5d321
2 changed files with 5 additions and 5 deletions
  1. 3 3
      lib/rmg/CRmgTemplate.cpp
  2. 2 2
      lib/rmg/CRmgTemplate.h

+ 3 - 3
lib/rmg/CRmgTemplate.cpp

@@ -555,7 +555,7 @@ ZoneConnection::ZoneConnection():
 	zoneB(-1),
 	guardStrength(0),
 	connectionType(rmg::EConnectionType::GUARDED),
-	hasRoad(rmg::ERoadOption::ROAD_TRUE)
+	hasRoad(rmg::ERoadOption::ROAD_RANDOM)
 {
 
 }
@@ -639,9 +639,9 @@ void ZoneConnection::serializeJson(JsonSerializeFormat & handler)
 
 	static const std::vector<std::string> roadOptions =
 	{
+		"random",
 		"true",
-		"false",
-		"random"
+		"false"
 	};
 
 	if (handler.saving)

+ 2 - 2
lib/rmg/CRmgTemplate.h

@@ -88,9 +88,9 @@ enum class EConnectionType
 
 enum class ERoadOption
 {
+	ROAD_RANDOM = 0,
 	ROAD_TRUE,
-	ROAD_FALSE,
-	ROAD_RANDOM
+	ROAD_FALSE
 };
 
 class DLL_LINKAGE ZoneConnection