X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dust.c;h=b336696035da9c1cbd7248114d023487d600e551;hb=badd0f9bfc6dad829073e606c1953572ece1b06b;hp=691649d412b821b42f83766a3af059a361b6a4c3;hpb=841f94c4182f8dff0253db9bae4922c3c9039a5f;p=vor.git diff --git a/dust.c b/dust.c index 691649d..b336696 100644 --- a/dust.c +++ b/dust.c @@ -30,12 +30,14 @@ void move_dust(void) { int i; + float xscroll = screendx * t_frame; + float yscroll = screendy * t_frame; 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; } }