summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/actor.cpp')
-rw-r--r--pacman-c++/actor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp
index 3794b63..4a132f9 100644
--- a/pacman-c++/actor.cpp
+++ b/pacman-c++/actor.cpp
@@ -35,8 +35,8 @@ Actor::Actor(Color::Color color, QGraphicsItem *parent)
35 for (int i = 0; i < 4; i++) 35 for (int i = 0; i < 4; i++)
36 { 36 {
37 PixmapItem *img = new PixmapItem(m_pix, this); 37 PixmapItem *img = new PixmapItem(m_pix, this);
38 int x = i * 20 + SPRITE_MARGIN; 38 int x = i * SPRITE_OFFSET + SPRITE_MARGIN;
39 int y = m_direction * 20 + SPRITE_MARGIN; 39 int y = m_direction * SPRITE_OFFSET + SPRITE_MARGIN;
40 img->setSprite(x, y, SPRITE_WIDTH, SPRITE_HEIGHT); 40 img->setSprite(x, y, SPRITE_WIDTH, SPRITE_HEIGHT);
41 img->setZValue(zValue()); 41 img->setZValue(zValue());
42 img->setVisible(false); 42 img->setVisible(false);