projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ServerRemotePlayer implements ServerActiveObject
[oweals/minetest.git]
/
src
/
noise.cpp
diff --git
a/src/noise.cpp
b/src/noise.cpp
index b755a824a8cdbcfe5d112dded39bd3597c400588..9c2141ce086842618daefbb7283d54580f32d082 100644
(file)
--- a/
src/noise.cpp
+++ b/
src/noise.cpp
@@
-238,7
+238,11
@@
double noise3d_param(const NoiseParams ¶m, double x, double y, double z)
y /= s;
z /= s;
- if(param.type == NOISE_PERLIN)
+ if(param.type == NOISE_CONSTANT_ONE)
+ {
+ return 1.0;
+ }
+ else if(param.type == NOISE_PERLIN)
{
return param.noise_scale*noise3d_perlin(x,y,z, param.seed,
param.octaves,