diff options
| author | manuel <manuel@mausz.at> | 2011-04-19 23:03:50 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-19 23:03:50 +0200 |
| commit | 58ba349f19f98fe3af5332188f5d3dfe4d076807 (patch) | |
| tree | 6425c4c8e0bc033906c944b985655625ebd9e19d /pacman-c++/mainwidget.cpp | |
| parent | 9e9bc7cd492bf6f897bc26818674a3919431fb99 (diff) | |
| download | foop-58ba349f19f98fe3af5332188f5d3dfe4d076807.tar.gz foop-58ba349f19f98fe3af5332188f5d3dfe4d076807.tar.bz2 foop-58ba349f19f98fe3af5332188f5d3dfe4d076807.zip | |
nicer method of ending rounds
Diffstat (limited to 'pacman-c++/mainwidget.cpp')
| -rw-r--r-- | pacman-c++/mainwidget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pacman-c++/mainwidget.cpp b/pacman-c++/mainwidget.cpp index f81961f..82099c4 100644 --- a/pacman-c++/mainwidget.cpp +++ b/pacman-c++/mainwidget.cpp | |||
| @@ -80,8 +80,6 @@ void MainWidget::createGui() | |||
| 80 | scoreLayout->addWidget(scoreBox); | 80 | scoreLayout->addWidget(scoreBox); |
| 81 | } | 81 | } |
| 82 | layout->addLayout(scoreLayout); | 82 | layout->addLayout(scoreLayout); |
| 83 | /* add some margin to scorebox hopefully won't resize the window */ | ||
| 84 | //setMinimumWidth(scoreLayout->minimumSize().width() + 50); | ||
| 85 | 83 | ||
| 86 | QGraphicsView *window = new QGraphicsView(m_scene, this); | 84 | QGraphicsView *window = new QGraphicsView(m_scene, this); |
| 87 | window->setFrameStyle(0); | 85 | window->setFrameStyle(0); |
| @@ -151,6 +149,7 @@ void MainWidget::tick() | |||
| 151 | if (m_updatepacket.eating_order_size() > 0) | 149 | if (m_updatepacket.eating_order_size() > 0) |
| 152 | { | 150 | { |
| 153 | Q_ASSERT(m_scene != NULL); | 151 | Q_ASSERT(m_scene != NULL); |
| 152 | m_scene->removeActors(); | ||
| 154 | QList<Color::Color> order; | 153 | QList<Color::Color> order; |
| 155 | for(int i = 0; i < m_updatepacket.eating_order_size(); ++i) | 154 | for(int i = 0; i < m_updatepacket.eating_order_size(); ++i) |
| 156 | order.append(static_cast<Color::Color>(m_updatepacket.eating_order(i) & Transmission::color_mask)); | 155 | order.append(static_cast<Color::Color>(m_updatepacket.eating_order(i) & Transmission::color_mask)); |
