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