summaryrefslogtreecommitdiffstats
path: root/pacman-c++/block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/block.cpp')
-rw-r--r--pacman-c++/block.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacman-c++/block.cpp b/pacman-c++/block.cpp
index 9e5e427..7cb77cc 100644
--- a/pacman-c++/block.cpp
+++ b/pacman-c++/block.cpp
@@ -19,5 +19,5 @@ Block::Block(Color::Color color, unsigned int neighbours, QGraphicsItem *parent)
19 19
20void Block::setNeighbours(unsigned int neighbours) 20void Block::setNeighbours(unsigned int neighbours)
21{ 21{
22 setSprite(neighbours * SPRITE_OFFSET, 0, SPRITE_WIDTH, SPRITE_HEIGHT); 22 setSprite(neighbours * Constants::sprite_offset, 0, Constants::field_size.width, Constants::field_size.height);
23} 23}