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.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/pacman-c++/actor.cpp b/pacman-c++/actor.cpp
index 3af304c..e8f5496 100644
--- a/pacman-c++/actor.cpp
+++ b/pacman-c++/actor.cpp
@@ -1,4 +1,5 @@
1#include "actor.h" 1#include "actor.h"
2#include "util.h"
2#include <QtCore/QPropertyAnimation> 3#include <QtCore/QPropertyAnimation>
3#include <QtCore/QVariantAnimation> 4#include <QtCore/QVariantAnimation>
4#include <QDebug> 5#include <QDebug>
@@ -24,7 +25,7 @@ Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent)
24 return; 25 return;
25 26
26 /* our actor pixmap. created after server part */ 27 /* our actor pixmap. created after server part */
27 m_pix = ":/" + QString("actor%1").arg((m_color >> 1) + 1); 28 m_pix = ":/" + QString("actor%1").arg(Util::floorLog2(color) + 1);
28 29
29 /* setup icon for player */ 30 /* setup icon for player */
30 m_icon.setPixmap(m_pix); 31 m_icon.setPixmap(m_pix);