Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Blob ore: Fix partial blobs
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+3
−3
src/mg_ore.cpp
|
@@ -358,9 +358,9 @@ void OreBlob::generate(MMVManip *vm, int mapseed, u32 blockseed, |
|
|
|
|
|
float noiseval = noise->result[index]; |
|
|
|
|
|
float xdist = x1 - csize / 2; |
|
|
float ydist = y1 - csize / 2; |
|
|
float zdist = z1 - csize / 2; |
|
|
float xdist = (s32)x1 - (s32)csize / 2; |
|
|
float ydist = (s32)y1 - (s32)csize / 2; |
|
|
float zdist = (s32)z1 - (s32)csize / 2; |
|
|
|
|
|
noiseval -= (sqrt(xdist * xdist + ydist * ydist + zdist * zdist) / csize); |
|
|
|
|
|