diff options
| author | manuel <manuel@mausz.at> | 2011-05-02 17:12:11 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-05-02 17:12:11 +0200 |
| commit | 8b13a88127a70da7a4e307df828d65811ae5d0f1 (patch) | |
| tree | d54fca9a1508f1e3a18b4062475663b34e92aabd /pacman-c++/actor.cpp | |
| parent | ce20694e0db010b5d65bdd2ee81a410efbf99e3d (diff) | |
| download | foop-8b13a88127a70da7a4e307df828d65811ae5d0f1.tar.gz foop-8b13a88127a70da7a4e307df828d65811ae5d0f1.tar.bz2 foop-8b13a88127a70da7a4e307df828d65811ae5d0f1.zip | |
smaller output
Diffstat (limited to 'pacman-c++/actor.cpp')
| -rw-r--r-- | pacman-c++/actor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp index 9c2d2fa..9d22e1b 100644 --- a/pacman-c++/actor.cpp +++ b/pacman-c++/actor.cpp | |||
| @@ -62,12 +62,11 @@ Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) | |||
| 62 | for (int i = 0; i < 11; i++) | 62 | for (int i = 0; i < 11; i++) |
| 63 | { | 63 | { |
| 64 | PixmapItem *img = new PixmapItem(m_pix, this); | 64 | PixmapItem *img = new PixmapItem(m_pix, this); |
| 65 | img->setZValue(zValue() * 10); | ||
| 66 | m_images.append(img); | 65 | m_images.append(img); |
| 67 | int x = i * Constants::sprite_offset + Constants::sprite_margin; | 66 | int x = i * Constants::sprite_offset + Constants::sprite_margin; |
| 68 | int y = 5 * Constants::sprite_offset + Constants::sprite_margin; | 67 | int y = 5 * Constants::sprite_offset + Constants::sprite_margin; |
| 69 | img->setSprite(x, y, Constants::field_size.width, Constants::field_size.height); | 68 | img->setSprite(x, y, Constants::field_size.width, Constants::field_size.height); |
| 70 | img->setZValue(zValue()); | 69 | img->setZValue(zValue() * 10); |
| 71 | img->setVisible(false); | 70 | img->setVisible(false); |
| 72 | 71 | ||
| 73 | QPropertyAnimation *fadein = new QPropertyAnimation(img, "visible", m_dieing); | 72 | QPropertyAnimation *fadein = new QPropertyAnimation(img, "visible", m_dieing); |
