X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=dust.c;h=b336696035da9c1cbd7248114d023487d600e551;hp=3a9f2465081ffe184f2e537fd18c88c0133e0dde;hb=badd0f9bfc6dad829073e606c1953572ece1b06b;hpb=1d9107a3d43b3f57087edee14f1eaf7c1f3db54e 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; } }