diff options
| author | manuel <manuel@mausz.at> | 2011-04-12 21:32:44 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-12 21:32:44 +0200 |
| commit | 26c2af49cc410b7bd2ea6017a5454381087e960b (patch) | |
| tree | 8dd9782767729b4edab0132d673b2c6807d4f406 /pacman-c++/point.cpp | |
| parent | 6af8e7795da1e86745364af1538fa76d4e0fc07e (diff) | |
| download | foop-26c2af49cc410b7bd2ea6017a5454381087e960b.tar.gz foop-26c2af49cc410b7bd2ea6017a5454381087e960b.tar.bz2 foop-26c2af49cc410b7bd2ea6017a5454381087e960b.zip | |
- socket.write returns signed integer
- make waka sound working
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 | } |
