diff options
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index aec4b8f65..d1a257607 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -473,7 +473,11 @@ bool Settings::getNoiseParamsFromValue(const std::string &name, f.next(","); np.seed = stoi(f.next(",")); np.octaves = stoi(f.next(",")); - np.persist = stof(f.next("")); + np.persist = stof(f.next(",")); + + std::string optional_params = f.next(""); + if (optional_params != "") + np.lacunarity = stof(optional_params); return true; } |