From a66136625d79df164de74c81bc9d0960aafcd964 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 2 Aug 2020 12:53:19 +0200 Subject: [PATCH] save/load arb geometry --- mapeditor.cpp | 7 +++++++ system.cpp | 13 ++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index e22a2e44..01fbfc24 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -461,6 +461,7 @@ EX namespace mapstream { #if CAP_ARCM if(geometry == gArchimedean) f.write(arcm::current.symbol); #endif + if(geometry == gArbitrary) f.write(arb::current.filename); if(geometry == gNil) { f.write(S7); f.write(nilv::nilperiod); @@ -543,6 +544,12 @@ EX namespace mapstream { } } #endif + if(geometry == gArbitrary) { + string s; + f.read(s); + arb::run(s); + stop_game(); + } #if CAP_ARCM if(geometry == gArchimedean) { string& symbol = arcm::current.symbol; diff --git a/system.cpp b/system.cpp index c9d68f4c..eb24a5a5 100644 --- a/system.cpp +++ b/system.cpp @@ -1209,6 +1209,14 @@ EX void loadsave() { for(int i=0; i