projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68c799b
)
Settings: Fix getNoiseParamsFromValue()
author
kwolekr
<kwolekr@minetest.net>
Wed, 3 Dec 2014 02:09:16 +0000
(21:09 -0500)
committer
kwolekr
<kwolekr@minetest.net>
Wed, 3 Dec 2014 02:09:16 +0000
(21:09 -0500)
src/settings.cpp
patch
|
blob
|
history
diff --git
a/src/settings.cpp
b/src/settings.cpp
index 8bb4f5c9c43d3415344da4f3e1e78deaac035149..fe3cc019d18fc022c5d6acada6aefaa658db1411 100644
(file)
--- a/
src/settings.cpp
+++ b/
src/settings.cpp
@@
-487,6
+487,7
@@
bool Settings::getNoiseParamsFromValue(const std::string &name,
np.spread.X = stof(f.next(","));
np.spread.Y = stof(f.next(","));
np.spread.Z = stof(f.next(")"));
+ f.next(",");
np.seed = stoi(f.next(","));
np.octaves = stoi(f.next(","));
np.persist = stof(f.next(""));