From b5db63d26753022494c4394c53555cf6cbfa43f1 Mon Sep 17 00:00:00 2001 From: Gael-de-Sailly Date: Mon, 13 Apr 2020 13:45:52 +0200 Subject: [PATCH] Re-added river flow data because needed for map preview --- .gitignore | 1 + terrain_rivers.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a3a96aa..4afef7d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ offset_x offset_y bounds_x bounds_y +rivers unused/ diff --git a/terrain_rivers.py b/terrain_rivers.py index 99046eb..aad0f91 100755 --- a/terrain_rivers.py +++ b/terrain_rivers.py @@ -81,6 +81,8 @@ save(np.abs(by), 'bounds_y', dtype='>i4') save(offset_x, 'offset_x', dtype='i1') save(offset_y, 'offset_y', dtype='i1') +save(model.rivers, 'rivers', dtype='>u4') + with open('size', 'w') as sfile: sfile.write('{:d}\n{:d}'.format(mapsize, mapsize))