From 2d7ef3fd487e9c9f05cadd42ca6916487f391b79 Mon Sep 17 00:00:00 2001 From: totycro Date: Tue, 19 Apr 2011 22:29:30 +0200 Subject: Removed unnecessary code --- pacman-c++/sceneholder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pacman-c++/sceneholder.cpp') diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp index 37db691..feef033 100644 --- a/pacman-c++/sceneholder.cpp +++ b/pacman-c++/sceneholder.cpp @@ -57,9 +57,8 @@ void SceneHolder::updateMap(const Transmission::map_t& map, const unsigned int x { GameEntity *oldItem = visualMap[x][y]; /* special handling for purging field - * remove elements (in case it's not an actor) */ - if (oldItem != NULL && qgraphicsitem_cast(oldItem) == NULL) + if (oldItem != NULL) { visualMap[x][y] = NULL; Actor *actor = NULL; -- cgit v1.2.3