From 9f896b86b671b3a05314d2013a315d996b456f95 Mon Sep 17 00:00:00 2001 From: manuel Date: Sat, 9 Apr 2011 15:03:50 +0200 Subject: add toggle audio icon --- pacman-c++/actor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pacman-c++/actor.cpp') diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 445d63d..011fbeb 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp @@ -81,7 +81,7 @@ QSequentialAnimationGroup *Actor::setupEatingAnimation(Actor::Movement direction fadeout->setEndValue(false); QPropertyAnimation *move = new QPropertyAnimation(img, "pos", m_moving); - move->setDuration(Constants::tick); + move->setDuration(Constants::tick - 50); move->setEndValue(QPoint(0, 0)); } @@ -106,8 +106,8 @@ bool Actor::isLocal() void Actor::move(Actor::Movement direction) { //TODO: remove? - if (isMoving()) - return; + //if (isMoving()) + // return; /* stop current animation */ if (direction != m_direction) -- cgit v1.2.3