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++/gameentity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pacman-c++/gameentity.cpp') diff --git a/pacman-c++/gameentity.cpp b/pacman-c++/gameentity.cpp index 9dc72ec..156deda 100644 --- a/pacman-c++/gameentity.cpp +++ b/pacman-c++/gameentity.cpp @@ -1,9 +1,9 @@ #include "gameentity.h" GameEntity::GameEntity(Color::Color color, QGraphicsItem *parent) - : PixmapItem(parent), m_eaten(false), m_color(color) + : PixmapItem(parent), m_type(Type), m_eaten(false), m_color(color) {} GameEntity::GameEntity(QGraphicsItem *parent) - : PixmapItem(parent), m_eaten(false), m_color(Color::none) + : PixmapItem(parent), m_type(Type), m_eaten(false), m_color(Color::none) {} -- cgit v1.2.3