mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Add support for lacunarity in legacy NoiseParams string format
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user