about summary refs log tree commit diff stats
path: root/ext/wittle_generator/Panel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wittle_generator/Panel.cpp')
-rw-r--r--ext/wittle_generator/Panel.cpp8
1 files changed, 2 insertions, 6 deletions
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() {
127 int genericFlags = 0; 127 int genericFlags = 0;
128 if (symmetry != Symmetry::None) { 128 if (symmetry != Symmetry::None) {
129 genericFlags |= Serializer::Symmetrical; 129 genericFlags |= Serializer::Symmetrical;
130 if (symmetry == Symmetry::Vertical || symmetry == Symmetry::Rotational) {
131 genericFlags |= Serializer::SymmetryX;
132 }
133 if (symmetry == Symmetry::Horizontal || symmetry == Symmetry::Rotational) {
134 genericFlags |= Serializer::SymmetryY;
135 }
136 } 130 }
137 serializer.writeByte(genericFlags); 131 serializer.writeByte(genericFlags);
138 132
@@ -233,5 +227,7 @@ std::string Panel::Write() {
233 } 227 }
234 serializer.writeByte(settings); 228 serializer.writeByte(settings);
235 229
230 serializer.writeByte(symmetry);
231
236 return serializer.str(); 232 return serializer.str();
237} 233}