add recharge
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
TerrainMovementConfig::TerrainMovementConfig()
|
||||
: waterHeightThreshold(6),
|
||||
coastBeachWidthKm(0.022f),
|
||||
mountainRockHeightKm(2.3f),
|
||||
snowHeightKm(3.1f),
|
||||
polarSnowLineEnabled(true),
|
||||
@@ -61,6 +62,9 @@ bool TerrainMovementManager::loadConfig(const QString &filePath)
|
||||
if (root.hasChild("water_height_threshold")) {
|
||||
m_config.waterHeightThreshold = root["water_height_threshold"].asInt(6);
|
||||
}
|
||||
if (root.hasChild("coast_beach_width_km")) {
|
||||
m_config.coastBeachWidthKm = root["coast_beach_width_km"].asFloat(0.022f);
|
||||
}
|
||||
if (root.hasChild("mountain_rock_height_km")) {
|
||||
m_config.mountainRockHeightKm = root["mountain_rock_height_km"].asFloat(2.3f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user