Octopuses now stopped if speed is set 0 (or less) on the go
authorHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sun, 26 Jun 2011 09:46:06 +0000 (12:46 +0300)
committerHeli Hyvättinen <heli.hyvattinen@kymp.net>
Sun, 26 Jun 2011 09:46:06 +0000 (12:46 +0300)
Change made in the base class of Octopus,
TimerControlledGraphicsPixmapObject.
The game does not actually change speed after starting movement for the
first time.

timercontrolledgraphicspixmapobject.cpp

index c9896c1..d5cbe46 100644 (file)
@@ -53,6 +53,7 @@ void TimerControlledGraphicsPixmapObject::setSpeed(int speed)
      }
     else
         stoppedBecauseInvalidTime_ = true;
+        timer_.stop();
 }