summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
-rw-r--r--pacman-c++/sceneholder.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp
index 37db691..3f92860 100644
--- a/pacman-c++/sceneholder.cpp
+++ b/pacman-c++/sceneholder.cpp
@@ -73,9 +73,8 @@ void SceneHolder::updateMap(const Transmission::map_t& map, const unsigned int x
73 } 73 }
74 74
75 /* an item must be removed by an actor */ 75 /* an item must be removed by an actor */
76 if (actor == NULL) { 76 if (actor == NULL)
77 Q_ASSERT(false); 77 Q_ASSERT(false);
78 }
79 oldItem->onDie(actor); 78 oldItem->onDie(actor);
80 79
81 /* register item for removal in next update */ 80 /* register item for removal in next update */
@@ -201,9 +200,8 @@ unsigned int SceneHolder::pointsLeft()
201void SceneHolder::decrementPoints() 200void SceneHolder::decrementPoints()
202{ 201{
203 --m_pointsLeft; 202 --m_pointsLeft;
204 if (m_pointsLeft == 0) { 203 if (m_pointsLeft == 0)
205 emit allPointsRemoved(); 204 emit allPointsRemoved();
206 }
207} 205}
208 206
209void SceneHolder::setEatingOrder(QList<Color::Color> &order) 207void SceneHolder::setEatingOrder(QList<Color::Color> &order)