Skip to content
Permalink
Browse files

Prevent transform of noise3d result in getBlockSeed2

  • Loading branch information
kwolekr committed Jan 12, 2015
1 parent c367f73 commit b0efb8f3b23596699f37e1a88ea093a82bd15b0a
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mapgen.cpp
@@ -112,7 +112,9 @@ u32 Mapgen::getBlockSeed(v3s16 p, int seed)

u32 Mapgen::getBlockSeed2(v3s16 p, int seed)
{
return noise3d(p.X, p.Y, p.Z, seed);
u32 n = 1619 * p.X + 31337 * p.Y + 52591 * p.Z + 1013 * seed;
n = (n >> 13) ^ n;
return (n * (n * n * 60493 + 19990303) + 1376312589);
}


0 comments on commit b0efb8f

Please sign in to comment.
You can’t perform that action at this time.