From c1413464930fa82073800a6c58334099bbef370b Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 7 Apr 2011 00:02:36 +0200 Subject: adding normal points --- pacman-c++/actor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pacman-c++/actor.cpp') diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 1796091..b6de49c 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp @@ -76,6 +76,7 @@ QSequentialAnimationGroup *Actor::setupEatingAnimation(Actor::Movement direction QPropertyAnimation *move = new QPropertyAnimation(img, "pos", m_moving); move->setDuration(Constants::tick); + move->setEndValue(QPoint(0, 0)); } return eating; @@ -138,12 +139,10 @@ void Actor::move(Actor::Movement direction) break; } - qDebug() << __FILE__ << "Move from" << pos() - endpos << "to" << (pos()) << "(" << endpos << ")"; for(int i = 0; i < m_moving->animationCount(); ++i) { QPropertyAnimation *move = dynamic_cast(m_moving->animationAt(i)); move->setStartValue(QPoint(0, 0) - endpos); - move->setEndValue(QPoint(0, 0)); } setPos(pos() + endpos); -- cgit v1.2.3