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++/bonuspoint.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pacman-c++/bonuspoint.cpp') diff --git a/pacman-c++/bonuspoint.cpp b/pacman-c++/bonuspoint.cpp index 6e1c9d0..8cb8c7e 100644 --- a/pacman-c++/bonuspoint.cpp +++ b/pacman-c++/bonuspoint.cpp @@ -12,6 +12,8 @@ namespace BonusPoint::BonusPoint(QGraphicsItem *parent) : GameEntity(parent) { + m_type = Type; + /* empty object for servers */ if (Constants::server) return; -- cgit v1.2.3