diff options
Diffstat (limited to 'Source/Randomizer2Core.cpp')
-rw-r--r-- | Source/Randomizer2Core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Randomizer2Core.cpp b/Source/Randomizer2Core.cpp index 5cae049..ceb726b 100644 --- a/Source/Randomizer2Core.cpp +++ b/Source/Randomizer2Core.cpp | |||
@@ -24,6 +24,11 @@ std::vector<Pos> Randomizer2Core::CutSymmetricalEdgePairs(const Puzzle& p, size_ | |||
24 | for (int y=0; y<p.height; y++) { | 24 | for (int y=0; y<p.height; y++) { |
25 | copy.grid[p.width/2][y].gap = Cell::Gap::FULL; | 25 | copy.grid[p.width/2][y].gap = Cell::Gap::FULL; |
26 | } | 26 | } |
27 | } else { | ||
28 | // The puzzle has an odd width (e.g. 3x3), but we still need to cut the midline. | ||
29 | for (int y=0; y<p.height; y++) { | ||
30 | copy.grid[p.width/2][y].gap = Cell::Gap::FULL; | ||
31 | } | ||
27 | } | 32 | } |
28 | 33 | ||
29 | return CutEdgesInternal(copy, 0, (p.width-1)/2, 0, p.height, numEdges); | 34 | return CutEdgesInternal(copy, 0, (p.width-1)/2, 0, p.height, numEdges); |