void SetBlock(int scr, int y, int x, unsigned char type)
{
- if (y >= 0 && y < Players[scr].boardHeight &&
- x >= 0 && x < Players[scr].boardWidth) {
+ if (y >= 0 && y < Players[scr].boardHeight
+ && x >= 0 && x < Players[scr].boardWidth) {
board[scr][y][x] = type;
changed[scr][y] |= 1 << x;
}
EraseShape(Players[scr].curShape, scr,
Players[scr].curY, Players[scr].curX, 1);
result = ShapeFits(Players[scr].curShape, scr, Players[scr].curY + deltaY,
- Players[scr].curX + deltaX);
+ Players[scr].curX + deltaX);
if (result) {
Players[scr].curY += deltaY;
Players[scr].curX += deltaX;
} //try to fit if it doesn't
if (result) Players[scr].curShape = newshape;
PlotShape(Players[scr].curShape, scr,
- Players[scr].curY, Players[scr].curX, scr == me);
+ Players[scr].curY, Players[scr].curX, scr == me);
return result;
} //RotatePiece
EraseShape(Players[scr].curShape, scr,
Players[scr].curY, Players[scr].curX, 1);
while (ShapeFits(Players[scr].curShape, scr,
- Players[scr].curY - 1, Players[scr].curX)) {
+ Players[scr].curY - 1, Players[scr].curX)) {
Players[scr].curY--;
count++;
}