From cce86546822ebbd4d2f1fb4f9944c9f8f7d5532f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 23 Feb 2012 15:38:48 +0100 Subject: Simple columns --- src/muniad.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3