struct vector pos;
float radius = p->radius * cam->zoom;
float r2 = radius * radius;
- int x, x_start, y, x_end, y_end;
+ int x, x_start, y, x_end;
vector_sub(&p->pos, &cam->pos, &pos);
vector_scale(&pos, cam->zoom, &pos);
y = MAX(pos.y - radius, 0);
- if (radius * 2 <= 1 ) {
+ if (radius * 2 <= 1) {
if (pos.x >= 0 && pos.x < screen->w &&
pos.y >= 0 && pos.y < screen->h)
putpixel(screen, (int)pos.x, (int)pos.y,