From 0d6626d62a5cc8f57dd5935f854a052690f02901 Mon Sep 17 00:00:00 2001 From: alu Date: Thu, 15 Apr 2010 14:19:24 +0000 Subject: [PATCH] Got rid of compiler warnings --- animations/ltn_ant.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/animations/ltn_ant.c b/animations/ltn_ant.c index ec29197..8d75bc1 100644 --- a/animations/ltn_ant.c +++ b/animations/ltn_ant.c @@ -47,6 +47,9 @@ void ltn_ant() { ant.dy = (random8() % 3) - 1; } while(ant.dx == ant.dy); + ant.ox = 0; + ant.oy = 0; + while(cycles != 0) { if(get_pixel((pixel) {ant.x, ant.y}) == 0) { /* If the pixel is not set turn it on */ setpixel((pixel) {ant.x, ant.y}, 3);