diff options
Diffstat (limited to 'pacman-c++/block.cpp')
| -rw-r--r-- | pacman-c++/block.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pacman-c++/block.cpp b/pacman-c++/block.cpp index c168c00..b1ce0e0 100644 --- a/pacman-c++/block.cpp +++ b/pacman-c++/block.cpp | |||
| @@ -7,6 +7,10 @@ QMap<Color::Color, QPixmap> Block::m_pixmaps; | |||
| 7 | Block::Block(Color::Color color, unsigned int neighbours, QGraphicsItem *parent) | 7 | Block::Block(Color::Color color, unsigned int neighbours, QGraphicsItem *parent) |
| 8 | : PixmapItem(parent) | 8 | : PixmapItem(parent) |
| 9 | { | 9 | { |
| 10 | /* empty object for servers */ | ||
| 11 | if (Constants::server) | ||
| 12 | return; | ||
| 13 | |||
| 10 | if (m_pixmaps.find(color) == m_pixmaps.end()) | 14 | if (m_pixmaps.find(color) == m_pixmaps.end()) |
| 11 | { | 15 | { |
| 12 | unsigned int colid = (color == Color::none) ? 0 : (color >> 1) + 1; | 16 | unsigned int colid = (color == Color::none) ? 0 : (color >> 1) + 1; |
