Searched refs:yv (Results 1 - 1 of 1) sorted by relevance

/solaris-x11-s12/open-src/app/xlock/sun-src/
H A Dswarm.c73 short *yv; /* bee velocities xv[bee#] */ member in struct:__anon110
110 sp->yv = malloc(sizeof(short) * sp->beecount);
114 (sp->xv == NULL) || (sp->yv == NULL)) {
135 sp->yv[b] = (short) RAND(7);
182 sp->yv[random() % sp->beecount] += (short) RAND(3);
202 sp->yv[b] += (dy * BEEACC) / distance;
209 if (sp->yv[b] > BEEVEL)
210 sp->yv[b] = BEEVEL;
211 if (sp->yv[b] < -BEEVEL)
212 sp->yv[
[all...]

Completed in 8 milliseconds