diff options
| author | manuel <manuel@mausz.at> | 2011-04-09 15:03:50 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-09 15:03:50 +0200 |
| commit | 9f896b86b671b3a05314d2013a315d996b456f95 (patch) | |
| tree | 18bb310c96ea4a6f819494776a91a96a38fee2af /pacman-c++/actor.cpp | |
| parent | 7e4bc8ece49543533c4e27f5d6bc867c1bada601 (diff) | |
| download | foop-9f896b86b671b3a05314d2013a315d996b456f95.tar.gz foop-9f896b86b671b3a05314d2013a315d996b456f95.tar.bz2 foop-9f896b86b671b3a05314d2013a315d996b456f95.zip | |
add toggle audio icon
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 | |||
| 81 | fadeout->setEndValue(false); | 81 | fadeout->setEndValue(false); |
| 82 | 82 | ||
| 83 | QPropertyAnimation *move = new QPropertyAnimation(img, "pos", m_moving); | 83 | QPropertyAnimation *move = new QPropertyAnimation(img, "pos", m_moving); |
| 84 | move->setDuration(Constants::tick); | 84 | move->setDuration(Constants::tick - 50); |
| 85 | move->setEndValue(QPoint(0, 0)); | 85 | move->setEndValue(QPoint(0, 0)); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| @@ -106,8 +106,8 @@ bool Actor::isLocal() | |||
| 106 | void Actor::move(Actor::Movement direction) | 106 | void Actor::move(Actor::Movement direction) |
| 107 | { | 107 | { |
| 108 | //TODO: remove? | 108 | //TODO: remove? |
| 109 | if (isMoving()) | 109 | //if (isMoving()) |
| 110 | return; | 110 | // return; |
| 111 | 111 | ||
| 112 | /* stop current animation */ | 112 | /* stop current animation */ |
| 113 | if (direction != m_direction) | 113 | if (direction != m_direction) |
