Settings: Fix getNoiseParamsFromValue()
authorkwolekr <kwolekr@minetest.net>
Wed, 3 Dec 2014 02:09:16 +0000 (21:09 -0500)
committerkwolekr <kwolekr@minetest.net>
Wed, 3 Dec 2014 02:09:16 +0000 (21:09 -0500)
src/settings.cpp

index 8bb4f5c9c43d3415344da4f3e1e78deaac035149..fe3cc019d18fc022c5d6acada6aefaa658db1411 100644 (file)
@@ -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(""));