Lines Matching refs:yv
73 short *yv; /* bee velocities xv[bee#] */
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[b] = -BEEVEL;
216 Y(0, b) = Y(1, b) + sp->yv[b];