From 0ff27cc5b8baebbf80643f2c4bf0f209004095ff Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 27 Nov 2019 22:04:41 +0100 Subject: [PATCH] save torus periods --- mapeditor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mapeditor.cpp b/mapeditor.cpp index 3743cca2..936bf7ae 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -166,6 +166,10 @@ namespace mapstream { } if(binarytiling && VERNUM_HEX >= 0xA80C) f.write(vid.binary_width); + if(euclid && !penrose && !archimedean) { + f.write(euclid3::T0); + f.write(euclid3::twisted); + } } void load_geometry(fhstream& f) { @@ -247,6 +251,10 @@ namespace mapstream { } if(binarytiling && VERNUM_HEX >= 0xA80C) f.read(vid.binary_width); + if(euclid && !penrose && !archimedean && VERNUM_HEX >= 0xA80D) { + f.read(euclid3::T0); + f.read(euclid3::twisted); + } } void save_only_map(fhstream& f) {