From fae7c3377c8995b217e620c5cf1e963b3ab1e84a Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 12 Apr 2011 16:22:19 +0200 Subject: finding out which actor has eaten which element didn't work correctly. instead of checking that on client side the server now just sends the id of the actor withing the explicit empty id data field --- pacman-c++/point.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pacman-c++/point.cpp') diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 35266f6..54c0ee4 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp @@ -28,5 +28,11 @@ bool Point::enter(Actor *actor) void Point::onDie(Actor *actor) { - //TODO + AudioPlayer *player = actor->wakaPlayer(); + qDebug() << "onDie" << player; + if (player == NULL) + return; + if (player->state() != Phonon::PlayingState) + player->play(); + player->setMuted(false); } -- cgit v1.2.3