[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/games/magazynier
From: Tadeusz Andrzej Kadłubowski <yess () hell ! org ! pl>
Date: 2010-06-05 10:50:58
Message-ID: 20100605105058.BB723AC8CA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1134800 by tkadlubo:
Always update player orientation, skip only redrawing the pixmap.
BUG:230585
M +3 -0 item.cpp
M +3 -5 levelModel.cpp
--- trunk/playground/games/magazynier/item.cpp #1134799:1134800
@@ -54,6 +54,9 @@
void MagazynierItem::setOrientation(QPoint orientation)
{
+ if (orientation == m_itemOrientation) {
+ return;
+ }
m_itemOrientation = orientation;
updatePixmap();
}
--- trunk/playground/games/magazynier/levelModel.cpp #1134799:1134800
@@ -270,16 +270,14 @@
return;
} //}}}
-void LevelModel::updatePlayerOrientation(QPoint orientation)
+void LevelModel::updatePlayerOrientation(QPoint orientation) //{{{
{
- if (orientation == m_playerOrientation) {
- return;
- }
m_playerOrientation = orientation;
MagazynierItem *playerItem = getItem(*m_playerPos);
+ kDebug() << "player item type:" <<playerItem->itemType();
playerItem->setOrientation(orientation);
-}
+} //}}}
bool LevelModel::canMove(QPoint pos, QPoint delta) //{{{
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic