diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mg_ore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mg_ore.cpp b/src/mg_ore.cpp index 28be816f5..16d97685a 100644 --- a/src/mg_ore.cpp +++ b/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); |