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:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user