]> git.itanic.dy.fi Git - sdl-planets/commitdiff
print_planet: Also print the size of the planet
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 11:13:38 +0000 (13:13 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 7 Mar 2010 11:14:12 +0000 (13:14 +0200)
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
planet.c

index 0a76081a4edb21c81207b4626d66bfb7a7be0d67..99e6bfad1167e4beec0e6ac83506d38245469f7b 100644 (file)
--- a/planet.c
+++ b/planet.c
@@ -75,6 +75,6 @@ void move_planet(struct planet *p, const double time)
 
 void print_planet(const struct planet *p)
 {
-       printf("pos: (%f.%f), speed: (%f.%f), mass: %f\n",
-              p->pos.x, p->pos.y, p->speed.x, p->speed.y, p->mass);
+       printf("pos: (%f,%f), speed: (%f,%f), mass: %f, size %f\n",
+              p->pos.x, p->pos.y, p->speed.x, p->speed.y, p->mass, p->size);
 }