mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-11-12 05:40:22 +01: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:
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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user