From 19c9c38d28cdaafcc1b496027f53dcd1914037cf Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 17 Apr 2011 19:54:02 +0200 Subject: get rid of two dynamic_casts and use qgraphicitem_cast which is A LOT faster (it makes use of static casts) --- pacman-c++/actor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pacman-c++/actor.cpp') diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index e8f5496..fb4b38a 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp @@ -13,6 +13,8 @@ Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) : GameEntity(color, parent),m_direction(Actor::None), m_local(local), m_wakaPlayer(NULL), m_roundPoints(0), m_gamePoints(0) { + m_type = Type; + /* DON'T set any pixmap here. we've a pixmap in the animation * but we need a sprite for the collision detection */ -- cgit v1.2.3