added usages of trim to lists
authorPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 19 Aug 2009 03:49:27 +0000 (23:49 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 19 Aug 2009 03:49:27 +0000 (23:49 -0400)
src/entityCreator.cpp

index 34b9a56..f44eda0 100644 (file)
@@ -29,8 +29,6 @@
 
 /// ***** Private Variables *****
 
 
 /// ***** Private Variables *****
 
-//static bear::Queue<int> s_test;
-
 typedef bear::Queue<Ball*>      queBall;
 typedef bear::Queue<Polygon*>   quePoly;
 
 typedef bear::Queue<Ball*>      queBall;
 typedef bear::Queue<Polygon*>   quePoly;
 
@@ -105,6 +103,10 @@ void creator::init()
     points.push_back(Vector2(500,300));
 
     addPoly(points, cRed, s_startPolys);
     points.push_back(Vector2(500,300));
 
     addPoly(points, cRed, s_startPolys);
+
+
+    s_startPolys.trim();
+    s_startBalls.trim();
 }
 void creator::clean()
 {
 }
 void creator::clean()
 {