summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/actor.cpp')
-rw-r--r--pacman-c++/actor.cpp6
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()
106void Actor::move(Actor::Movement direction) 106void 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)