Newer
Older
{
comm.addPoints(dxys, 15);
if (!comm.ack()) std::cerr << "Can't add points" << std::endl;
return;
}
dxys[2*cmdPoints] = 0x80|int7(bigdx);
dxys[2*cmdPoints+1] = int7(bigdy);
cmdPoints++;
dxys[2*cmdPoints] = int7(dx);
dxys[2*cmdPoints+1] = int7(dy);
sndPoint++;
oldX = x;
oldY = y;
if (cmdPoints==16)
{
comm.addPoints(dxys, 16);
if (!comm.ack()) std::cerr << "Can't add points" << std::endl;
return;
}
comm.addPoints(dxys, cmdPoints);
if (!comm.ack()) std::cerr << "Can't add points" << std::endl;