Skip to content

Commit

Permalink
Blob ore: Fix partial blobs
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Sep 19, 2015
1 parent 691eb2d commit 795db97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mg_ore.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 795db97

Please sign in to comment.