From 651a1bee1adc5318922d1b37b0cea11a65df71e2 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 12 Apr 2011 18:08:02 +0200 Subject: make removal of items from scene delayed by one tick (looks better) all items are now derived from gameentity and gameentity is derived from pixmapitem: - this is naturally better - allows us to add a generic gameentity.color() --- pacman-c++/point.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pacman-c++/point.cpp') diff --git a/pacman-c++/point.cpp b/pacman-c++/point.cpp index 54c0ee4..1943756 100644 --- a/pacman-c++/point.cpp +++ b/pacman-c++/point.cpp @@ -8,7 +8,7 @@ namespace } Point::Point(QGraphicsItem *parent) - : PixmapItem(parent) + : GameEntity(parent) { /* empty object for servers */ if (Constants::server) @@ -34,5 +34,4 @@ void Point::onDie(Actor *actor) return; if (player->state() != Phonon::PlayingState) player->play(); - player->setMuted(false); } -- cgit v1.2.3