Update.
[universe.git] / hit_shape.cc
index 189cadc..344e45c 100644 (file)
@@ -8,7 +8,7 @@
 
 class MoveSquare : public Task {
 
 
 class MoveSquare : public Task {
 
-  int _square_size;
+  scalar_t _square_size;
   int _nb_shapes;
   Polygon **_shapes;
   bool *_targets;
   int _nb_shapes;
   Polygon **_shapes;
   bool *_targets;
@@ -47,7 +47,7 @@ public:
                       margin + (world_height - 2 * margin) * drand48(),
                       2 * M_PI * drand48());
       p->set_speed(0, 0, 0);
                       margin + (world_height - 2 * margin) * drand48(),
                       2 * M_PI * drand48());
       p->set_speed(0, 0, 0);
-      universe->initialize(p);
+      universe->initialize_polygon(p);
       p->_nailed = true;
       if(universe->collide(p)) delete p;
       else {
       p->_nailed = true;
       if(universe->collide(p)) delete p;
       else {