diff options
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index cd59c1e..5ccc339 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp | |||
| @@ -163,12 +163,17 @@ void Actor::move(Actor::Movement direction) | |||
| 163 | 163 | ||
| 164 | if (direction != Actor::None) | 164 | if (direction != Actor::None) |
| 165 | { | 165 | { |
| 166 | m_moving->start(); | ||
| 167 | if (m_local && AudioPlayer::self()->state() != Phonon::PlayingState) | 166 | if (m_local && AudioPlayer::self()->state() != Phonon::PlayingState) |
| 168 | { | 167 | { |
| 168 | AudioPlayer::self()->clearQueue(); | ||
| 169 | AudioPlayer::self()->play(AudioPlayer::WakaWaka); | 169 | AudioPlayer::self()->play(AudioPlayer::WakaWaka); |
| 170 | AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); | 170 | AudioPlayer::self()->enqueue(AudioPlayer::WakaWaka); |
| 171 | } | 171 | } |
| 172 | m_moving->start(); | ||
| 173 | } | ||
| 174 | else | ||
| 175 | { | ||
| 176 | AudioPlayer::self()->stop(); | ||
| 172 | } | 177 | } |
| 173 | } | 178 | } |
| 174 | 179 | ||
