diff --git a/C++ProjectTemplate b/C++ProjectTemplate index 0353769..e2a07b0 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index d07600c..76a4fb2 100644 --- a/main.cpp +++ b/main.cpp @@ -260,6 +260,14 @@ bool Meteos::OnUserUpdate(float fElapsedTime) c.addBlockOnTopOf(b2->pos.x/12,b2->col); b2->markedForRemoval=true; } + for (Block*b2:matchedBlocksX) { + for (Block&b3:gameBoard.getBlocks(b2->pos.x/12)) { + if (!b3.markedForRemoval&&b3.pos.ypos.y) { + c.addBlockOnTopOf(b2->pos.x/12,b3.col); + b3.markedForRemoval=true; + } + } + } c.vspeed=gameBoard.launchSpd; } if (matchedBlocksY.size()>2) { @@ -269,6 +277,15 @@ bool Meteos::OnUserUpdate(float fElapsedTime) c.addBlockOnTopOf(b2->pos.x/12,b2->col); b2->markedForRemoval=true; } + for (int i=0;ipos.x/12)) { + if (!b3.markedForRemoval&&b3.pos.ypos.y) { + c.addBlockOnTopOf(b2->pos.x/12,b3.col); + b3.markedForRemoval=true; + } + } + } c.vspeed=gameBoard.launchSpd; } gameBoard.addClump(c);