1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Default all roads to random (optional)

This commit is contained in:
Tomasz Zieliński
2025-08-07 16:03:11 +02:00
parent f375259c78
commit 5ecaf5d321
2 changed files with 5 additions and 5 deletions

View File

@@ -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)

View File

@@ -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