summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
-rw-r--r--pacman-c++/sceneholder.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp
index 26f74a7..0047e59 100644
--- a/pacman-c++/sceneholder.cpp
+++ b/pacman-c++/sceneholder.cpp
@@ -41,8 +41,10 @@ void SceneHolder::updateMap(const Transmission::map_t& map)
41 m_scene->removeItem(oldItem); 41 m_scene->removeItem(oldItem);
42 visualMap[x][y] = NULL; 42 visualMap[x][y] = NULL;
43 Actor *actor = NULL; 43 Actor *actor = NULL;
44 foreach (Actor *i, m_actors) { 44 foreach (Actor *i, m_actors)
45 if (CoordToMapPosition(i->pos().x(), i->pos().y()) == QPoint(x, y)) { 45 {
46 if (CoordToMapPosition(i->pos().toPoint()) == QPoint(x, y))
47 {
46 actor = i; 48 actor = i;
47 break; 49 break;
48 } 50 }