Updated the web pages
[ghostsoverboard] / timercontrolledgraphicspixmapobject.cpp
index c9896c1..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()));
 }
 
@@ -53,6 +53,7 @@ void TimerControlledGraphicsPixmapObject::setSpeed(int speed)
      }
     else
         stoppedBecauseInvalidTime_ = true;
+        timer_.stop();
 }