diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-23 15:38:48 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-02-23 15:38:48 +0100 |
commit | cce86546822ebbd4d2f1fb4f9944c9f8f7d5532f (patch) | |
tree | e4610a72153f659e66b8eea20cb766249b60b568 | |
parent | 5ff86f1d353ae62906f050e735cd1b33938661fc (diff) |
Simple columns
-rw-r--r-- | src/muniad.cc | 2 |
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"); |