From 9ab0c3e066b2c0b48daed461e80c7bb22bc6803f Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 14 Apr 2011 23:29:50 +0200 Subject: fix wrong left shift which fixes the invisible fourth player :) --- pacman-c++/actor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pacman-c++/actor.cpp') 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 @@ #include "actor.h" +#include "util.h" #include #include #include @@ -24,7 +25,7 @@ Actor::Actor(Color::Color color, bool local, QGraphicsItem *parent) return; /* our actor pixmap. created after server part */ - m_pix = ":/" + QString("actor%1").arg((m_color >> 1) + 1); + m_pix = ":/" + QString("actor%1").arg(Util::floorLog2(color) + 1); /* setup icon for player */ m_icon.setPixmap(m_pix); -- cgit v1.2.3