From ac83733b590f3c0750bea1de3556ceb24fa0a4b1 Mon Sep 17 00:00:00 2001 From: jbzdarkid Date: Mon, 25 Nov 2019 21:10:50 -0800 Subject: Using PCH to clean up includes --- Source/Randomizer2Core.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Source/Randomizer2Core.cpp') diff --git a/Source/Randomizer2Core.cpp b/Source/Randomizer2Core.cpp index eaefa9a..89294ef 100644 --- a/Source/Randomizer2Core.cpp +++ b/Source/Randomizer2Core.cpp @@ -1,11 +1,8 @@ +#include "pch.h" #include "Randomizer2Core.h" #include "Puzzle.h" #include "Random.h" -#include -#include -#include - std::vector Randomizer2Core::CutEdges(const Puzzle& p, size_t numEdges) { return CutEdgesInternal(p, 0, p.width, 0, p.height, numEdges); } @@ -16,17 +13,20 @@ std::vector Randomizer2Core::CutInsideEdges(const Puzzle& p, size_t numEdge std::vector Randomizer2Core::CutSymmetricalEdgePairs(const Puzzle& p, size_t numEdges) { Puzzle copy = p; - assert(p.symmetry != Puzzle::Symmetry::NONE); + // Prevent cuts from landing on the midline if (p.symmetry == Puzzle::Symmetry::X) { - // Prevent cuts from landing on the midline for (int y=0; y Randomizer2Core::CutEdgesInternal(const Puzzle& p, int xMin, int xMax, int yMin, int yMax, size_t numEdges) { -- cgit 1.4.1