The initial directions of octopuses are now random
[ghostsoverboard] / timercontrolledgraphicspixmapobject.cpp
index d5cbe46..52fb616 100644 (file)
@@ -29,7 +29,7 @@ TimerControlledGraphicsPixmapObject::TimerControlledGraphicsPixmapObject(QPixmap
     QObject(), QGraphicsPixmapItem(pixmap, parent)
 {
     setSpeed(speed);
-    direction_ = S;
+    changeDirection();
     connect(&timer_,SIGNAL(timeout()),this,SLOT(move()));
 }