1
0
Mirror von https://gitlab.com/gaelysam/mapgen_rivers.git synchronisiert 2025-09-16 05:17:05 +02:00

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

Dieser Commit ist enthalten in:
Gael-de-Sailly
2020-12-20 18:11:11 +01:00
Ursprung 3dc874a494
Commit b4f97bec61

Datei anzeigen

@@ -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):