Generate and load map after mod loading

This has needed to globalize map tables
This commit is contained in:
Gaël C
2021-06-05 11:24:28 +02:00
parent b02387944d
commit 51f3a2719d
3 changed files with 48 additions and 24 deletions

View File

@ -42,6 +42,7 @@ function mapgen_rivers.write_map(filename, data, bytes)
for i=1, size do
local n = mfloor(data[i])
data[i] = n
for j=bytes, 2, -1 do
bytelist[j] = n % 256
n = mfloor(n / 256)