Lines Matching refs:xv
72 short *xv;
73 short *yv; /* bee velocities xv[bee#] */
109 sp->xv = malloc(sizeof(short) * sp->beecount);
114 (sp->xv == NULL) || (sp->yv == NULL)) {
134 sp->xv[b] = (short) RAND(7);
181 sp->xv[random() % sp->beecount] += (short) RAND(3);
201 sp->xv[b] += (dx * BEEACC) / distance;
205 if (sp->xv[b] > BEEVEL)
206 sp->xv[b] = BEEVEL;
207 if (sp->xv[b] < -BEEVEL)
208 sp->xv[b] = -BEEVEL;
215 X(0, b) = X(1, b) + sp->xv[b];