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++/block.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pacman-c++/block.cpp') diff --git a/pacman-c++/block.cpp b/pacman-c++/block.cpp index eb51d89..4087662 100644 --- a/pacman-c++/block.cpp +++ b/pacman-c++/block.cpp @@ -9,6 +9,8 @@ QMap Block::m_pixmaps; Block::Block(Color::Color color, unsigned int neighbours, QGraphicsItem *parent) : GameEntity(color, parent), m_neighbours(neighbours) { + m_type = Type; + /* empty object for servers */ if (Constants::server) return; -- cgit v1.2.3