summaryrefslogtreecommitdiff
path: root/hdaps-tux.c
diff options
context:
space:
mode:
Diffstat (limited to 'hdaps-tux.c')
-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;
}