]> git.itanic.dy.fi Git - sdl-planets/blobdiff - planet.c
quadtree: Add missing function definition to the header
[sdl-planets] / planet.c
index 69fadc0ca9fb4014c63f33ccc0f3cb04a3dc5392..1cf5d1ef50251cf947edf7f58f5b19156a8291d5 100644 (file)
--- a/planet.c
+++ b/planet.c
@@ -92,7 +92,7 @@ void draw_planet(SDL_Surface *screen, struct planet *p,
        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);
@@ -101,7 +101,7 @@ void draw_planet(SDL_Surface *screen, struct planet *p,
 
        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,