Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions RCube/Cube.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,12 @@ void Cube::PushCenterPieces(byte src, byte dst, byte color)

uint stkptr = 0;
uint pieces = 0;
uint start = Mid;
uint start = 1;

//If starting from a save state then set the start point
if (Itteration > 0) start = Itteration;

for (int quadrant = QState; quadrant < 4; ++quadrant)
for (int quadrant = QState; quadrant < 2; ++quadrant)
{
this->QState = quadrant;

Expand All @@ -431,8 +431,10 @@ void Cube::PushCenterPieces(byte src, byte dst, byte color)
{
pieces = 0;
stkptr = 0;
for (uint c = 1; c < Mid; ++c)
for (uint c = 1; c < R1; ++c)
{
//Avoid diagonal piece collisions
if (c == r) continue;
if (faces[src].GetRCQ(r, c, sq) == color)
{
pieces++;
Expand Down Expand Up @@ -473,7 +475,7 @@ void Cube::PushCenterPieces(byte src, byte dst, byte color)
}

//reset the start point
start = Mid;
start = 1;

//Rotate the src face to prepare for the next quadrant
Move(src, 0, 1);
Expand Down