diff options
Diffstat (limited to 'pacman-c++/mainwidget.cpp')
| -rw-r--r-- | pacman-c++/mainwidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index 82099c4..eb032bd 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp | |||
| @@ -149,7 +149,9 @@ void MainWidget::tick() | |||
| 149 | if (m_updatepacket.eating_order_size() > 0) | 149 | if (m_updatepacket.eating_order_size() > 0) |
| 150 | { | 150 | { |
| 151 | Q_ASSERT(m_scene != NULL); | 151 | Q_ASSERT(m_scene != NULL); |
| 152 | m_scene->removeActors(); | 152 | m_scene->reset(); |
| 153 | |||
| 154 | /* fetch eating order */ | ||
| 153 | QList<Color::Color> order; | 155 | QList<Color::Color> order; |
| 154 | for(int i = 0; i < m_updatepacket.eating_order_size(); ++i) | 156 | for(int i = 0; i < m_updatepacket.eating_order_size(); ++i) |
| 155 | order.append(static_cast<Color::Color>(m_updatepacket.eating_order(i) & Transmission::color_mask)); | 157 | order.append(static_cast<Color::Color>(m_updatepacket.eating_order(i) & Transmission::color_mask)); |
