Commit 377d2ddc authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Fix delta

parent 7c3a297b
......@@ -121,11 +121,11 @@ public class PresenterPlugin extends Plugin {
if (np == null) {
np = new NetworkPacket(PACKET_TYPE_PRESENTER);
} else {
xDelta += np.getInt("px");
yDelta += np.getInt("px");
xDelta += np.getInt("dx");
yDelta += np.getInt("dy");
}
np.set("px", xDelta);
np.set("py", yDelta);
np.set("dx", xDelta);
np.set("dy", yDelta);
device.sendPacket(np, NetworkPacket.PACKET_REPLACEID_PRESENTERPOINTER);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment