Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Settings: Fix getNoiseParamsFromValue()
  • Loading branch information
kwolekr committed Dec 3, 2014
1 parent 68c799b commit fcb1ea9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/settings.cpp
Expand Up @@ -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(""));
Expand Down

1 comment on commit fcb1ea9

@Zeno-
Copy link
Contributor

@Zeno- Zeno- commented on fcb1ea9 Dec 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is stof() acceptable? It's C++11 IIRC

Edit: or is it in util/ somewhere?

Please sign in to comment.