]> git.itanic.dy.fi Git - sdl-planets/commitdiff
Draw also the area planet tree affects
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Tue, 13 Apr 2010 17:26:31 +0000 (20:26 +0300)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Tue, 13 Apr 2010 17:26:31 +0000 (20:26 +0300)
planet.c

index e62bf00c5818273adfd8dd8d9628585a0ba556e9..839ba960630d07a3320e2516a5ed0b3db373909b 100644 (file)
--- a/planet.c
+++ b/planet.c
@@ -195,6 +195,8 @@ void draw_planet(SDL_Surface *screen, const struct planet *p,
        }
 
        draw_circle(screen, &pos, radius, p->r, p->g, p->b, 0);
+       draw_circle(screen, &pos, p->tree_area,
+                   p->r / 4, p->g / 4, p->b / 4, 1);
 }
 
 int gravitize_planet_with_planet(struct planet *a, struct planet *b,