X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dust.c;h=b336696035da9c1cbd7248114d023487d600e551;hb=a61d12a904040e20a434b432d62b6790fc7e4db3;hp=3a9f2465081ffe184f2e537fd18c88c0133e0dde;hpb=3cfde1edc98388c11d4efbbba7c8deaf56c4b1ae;p=vor.git diff --git a/dust.c b/dust.c index 3a9f246..b336696 100644 --- a/dust.c +++ b/dust.c @@ -35,9 +35,9 @@ move_dust(void) for(i=0; i= XSIZE) motes[i].x -= XSIZE; + if(motes[i].x >= XSIZE) motes[i].x -= XSIZE; else if(motes[i].x < 0) motes[i].x += XSIZE; - if(motes[i].y > YSIZE) motes[i].y -= YSIZE; + if(motes[i].y >= YSIZE) motes[i].y -= YSIZE; else if(motes[i].y < 0) motes[i].y += YSIZE; } }