summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-07-08 16:16:16 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-07-08 16:16:16 +0200
commit44df4d04ca067dd1a01db2eef3b092d3bbf729cc (patch)
tree304cbe8d1ea21962064f18474c62489fd04779e6
parentc36bf8c15e68639d46942dd24df5d74ce0250af8 (diff)
Test
-rw-r--r--hdaps-tux.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hdaps-tux.c b/hdaps-tux.c
index 1856040..28dac2e 100644
--- a/hdaps-tux.c
+++ b/hdaps-tux.c
@@ -129,8 +129,10 @@ int main(int argc, char *argv[])
dprintf("xdiff/ydiff: %d/%d\n", xdiff, ydiff);
- tuxX += xdiff * vel;
- tuxY += ydiff * vel;
+ if (abs(xdiff) > 2)
+ tuxX += xdiff * vel;
+ if (abs(ydiff) > 2)
+ tuxY += ydiff * vel;
timeout = TIMEOUT_VAL;
}