Update.
[universe.git] / move_square.cc
index a2bbda7..664b70f 100644 (file)
@@ -44,7 +44,7 @@ public:
     _target->set_position(_square_size/2, _square_size/2 + (world_height - _square_size) * drand48(), 0);
     _target->set_speed(0, 0, 0);
 
-    universe->initialize(_target);
+    universe->initialize_polygon(_target);
     universe->add_polygon(_target);
 
     if(degree == 4) {
@@ -57,7 +57,7 @@ public:
       obstacle->set_position(world_width/2, world_height/2, 0);
       obstacle->set_speed(0, 0, 0);
       obstacle->_nailed = true;
-      universe->initialize(obstacle);
+      universe->initialize_polygon(obstacle);
       universe->add_polygon(obstacle);
     }
   }