1
0
mirror of https://gitlab.com/gaelysam/mapgen_rivers.git synced 2025-04-10 15:00:38 +02:00

For noise map seed: don't go over ±4096, to prevent rounding errors on coordinates (because noise library uses 32-bit floats)

This commit is contained in:
Gael-de-Sailly 2020-12-20 18:11:11 +01:00
parent 3dc874a494
commit b4f97bec61

@ -81,8 +81,8 @@ params = {
}
# Determine noise offset randomly
xbase = np.random.randint(65536)
ybase = np.random.randint(65536)
xbase = np.random.randint(8192)-4096
ybase = np.random.randint(8192)-4096
# Generate the noise
for x in range(mapsize+1):