summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/muniad.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/muniad.cc b/src/muniad.cc
index 9cb947c..0277099 100644
--- a/src/muniad.cc
+++ b/src/muniad.cc
@@ -397,7 +397,7 @@ static int callback_lws_mirror(struct libwebsocket_context * context,
printf("\t!!!Could not locate task with id %d\n", id);
}
- buf_len = sprintf(buf, "move %d %d %d;", id, x, y);
+ buf_len = sprintf(buf, "move %d %d %d;", id, x / 300 * 300, y);
printf("Moving task: %s\n", buf);
} else if(cmd == "update") {
printf("Update\n");