From f4cf50557cfe088ed6c09d1d12d86b4cc8e14397 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Heli=20Hyv=C3=A4ttinen?= Date: Mon, 4 Jul 2011 19:25:18 +0300 Subject: [PATCH] The initial directions of octopuses are now random --- timercontrolledgraphicspixmapobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timercontrolledgraphicspixmapobject.cpp b/timercontrolledgraphicspixmapobject.cpp index d5cbe46..52fb616 100644 --- a/timercontrolledgraphicspixmapobject.cpp +++ b/timercontrolledgraphicspixmapobject.cpp @@ -29,7 +29,7 @@ TimerControlledGraphicsPixmapObject::TimerControlledGraphicsPixmapObject(QPixmap QObject(), QGraphicsPixmapItem(pixmap, parent) { setSpeed(speed); - direction_ = S; + changeDirection(); connect(&timer_,SIGNAL(timeout()),this,SLOT(move())); } -- 1.7.9.5