summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-19 22:35:35 +0200
committermanuel <manuel@mausz.at>2011-04-19 22:35:35 +0200
commit9ac2b59da5a900c000e2bdd52d72c5c874f75fbb (patch)
treea06541867bdf2bafa1657b9547238c6de4c66ae2 /pacman-c++/sceneholder.cpp
parent11224354131c29f656fb7e5e439c6946aff13458 (diff)
downloadfoop-9ac2b59da5a900c000e2bdd52d72c5c874f75fbb.tar.gz
foop-9ac2b59da5a900c000e2bdd52d72c5c874f75fbb.tar.bz2
foop-9ac2b59da5a900c000e2bdd52d72c5c874f75fbb.zip
coding conventions
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)