- for (x = 0; x < boardWidth[scr]; ++x)
- SetBlock(scr, y, x, (x == column) ? BT_none : BT_piece1);
- curY[scr] += count;
+ for (x = 0; x < Players[scr].boardWidth; ++x)
+ SetBlock(scr, y, x, (x == column) ? BT_none : BT_white);
+ Players[scr].curY += count; //move piece up..
+ for (y = 0; y < count; ++y)
+ if (ShapeFits(Players[scr].curShape, scr, Players[scr].curY - 1, Players[scr].curX))
+ Players[scr].curY--; //..and down as far as possible
+ else break;
+ PlotShape(Players[scr].curShape, scr, Players[scr].curY, Players[scr].curX, 1);