summaryrefslogtreecommitdiffstats
path: root/pacman-c++/actor.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2011-04-06 17:25:11 +0200
committermanuel <manuel@mausz.at>2011-04-06 17:25:11 +0200
commitf1a2d179062dfaf53f805395407a2c666eedf36e (patch)
tree353cacb1b63907e2ee1b72ce544c73f72560b597 /pacman-c++/actor.cpp
parent7ca893e9357e9153ba35a248564c1134af0f1f54 (diff)
downloadfoop-f1a2d179062dfaf53f805395407a2c666eedf36e.tar.gz
foop-f1a2d179062dfaf53f805395407a2c666eedf36e.tar.bz2
foop-f1a2d179062dfaf53f805395407a2c666eedf36e.zip
make pictures color index based
Diffstat (limited to 'pacman-c++/actor.cpp')
-rw-r--r--pacman-c++/actor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp
index 9d35d47..cde20cd 100644
--- a/pacman-c++/actor.cpp
+++ b/pacman-c++/actor.cpp
@@ -14,7 +14,7 @@ static QVariant myBooleanInterpolator(const bool &start, const bool &end, qreal
14Actor::Actor(Color::Color color, QGraphicsItem *parent) 14Actor::Actor(Color::Color color, QGraphicsItem *parent)
15 : PixmapItem(parent), m_color(color), m_direction(Actor::None) 15 : PixmapItem(parent), m_color(color), m_direction(Actor::None)
16{ 16{
17 m_pix = ":/" + QString("actor%1").arg(m_color); 17 m_pix = ":/" + QString("actor%1").arg((m_color >> 1) + 1);
18 // DON'T set any pixmap here. we've a pixmap in the animation 18 // DON'T set any pixmap here. we've a pixmap in the animation
19 //setPixmap(m_pix); 19 //setPixmap(m_pix);
20 // higher player "over" lower player 20 // higher player "over" lower player