mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add support for lacunarity in legacy NoiseParams string format
This commit is contained in:
parent
daefd0ab36
commit
a89f37bb65
2 changed files with 9 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue