Re-added river flow data because needed for map preview

This commit is contained in:
Gael-de-Sailly 2020-04-13 13:45:52 +02:00
parent 1adb4fbece
commit b5db63d267
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,4 +6,5 @@ offset_x
offset_y offset_y
bounds_x bounds_x
bounds_y bounds_y
rivers
unused/ unused/

View File

@ -81,6 +81,8 @@ save(np.abs(by), 'bounds_y', dtype='>i4')
save(offset_x, 'offset_x', dtype='i1') save(offset_x, 'offset_x', dtype='i1')
save(offset_y, 'offset_y', dtype='i1') save(offset_y, 'offset_y', dtype='i1')
save(model.rivers, 'rivers', dtype='>u4')
with open('size', 'w') as sfile: with open('size', 'w') as sfile:
sfile.write('{:d}\n{:d}'.format(mapsize, mapsize)) sfile.write('{:d}\n{:d}'.format(mapsize, mapsize))