[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-01-09 16:48:12
Message-ID: 1263055692.663513.21025.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1072218 by tkadlubo:
Update LevelModel->m_playerOrientation only, when it's actually needed.
M +3 -0 levelModel.cpp
--- trunk/playground/games/magazynier/levelModel.cpp #1072217:1072218
@@ -272,6 +272,9 @@
void LevelModel::updatePlayerOrientation(QPoint orientation)
{
+ if (orientation == m_playerOrientation) {
+ return;
+ }
m_playerOrientation = orientation;
MagazynierItem *playerItem = getItem(*m_playerPos);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic