1
0
Fork 0
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:
kwolekr 2014-12-10 01:31:21 -05:00
parent daefd0ab36
commit a89f37bb65
2 changed files with 9 additions and 5 deletions

View file

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