From 00641f16c889093b32b8e97a6050817f6fe43780 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 3 Nov 2023 00:18:41 -0400 Subject: added weird symmetries (and some more puzzles) --- ext/wittle_generator/Panel.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ext/wittle_generator/Panel.cpp') diff --git a/ext/wittle_generator/Panel.cpp b/ext/wittle_generator/Panel.cpp index 879d205..3279943 100644 --- a/ext/wittle_generator/Panel.cpp +++ b/ext/wittle_generator/Panel.cpp @@ -127,12 +127,6 @@ std::string Panel::Write() { int genericFlags = 0; if (symmetry != Symmetry::None) { genericFlags |= Serializer::Symmetrical; - if (symmetry == Symmetry::Vertical || symmetry == Symmetry::Rotational) { - genericFlags |= Serializer::SymmetryX; - } - if (symmetry == Symmetry::Horizontal || symmetry == Symmetry::Rotational) { - genericFlags |= Serializer::SymmetryY; - } } serializer.writeByte(genericFlags); @@ -233,5 +227,7 @@ std::string Panel::Write() { } serializer.writeByte(settings); + serializer.writeByte(symmetry); + return serializer.str(); } -- cgit 1.4.1