diff options
Diffstat (limited to 'pacman-c++/point.cpp')
| -rw-r--r-- | pacman-c++/point.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 755871d..7be09c0 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp | |||
| @@ -28,9 +28,5 @@ bool Point::enter(Actor *actor) | |||
| 28 | 28 | ||
| 29 | void Point::onDie(Actor *actor) | 29 | void Point::onDie(Actor *actor) |
| 30 | { | 30 | { |
| 31 | AudioPlayer *player = actor->wakaPlayer(); | 31 | actor->startEating(); |
| 32 | if (player == NULL) | ||
| 33 | return; | ||
| 34 | if (player->state() != Phonon::PlayingState) | ||
| 35 | player->play(); | ||
| 36 | } | 32 | } |
