summaryrefslogtreecommitdiffstats
path: root/entity.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-10-09 17:12:33 +0200
committerSamuel Rødal <sroedal@trolltech.com>2009-10-09 17:13:55 +0200
commitebdaf49bf68dea42787af342c56a0ec636bec707 (patch)
tree6e9585b0524ea375e8f93c19d91b277bbe63bac9 /entity.cpp
parent434f6ac2e0f411c13690e91ed55b04f75442a096 (diff)
Implemented hidden surface removal for projected items.
This speeds things up a bit by not painting walls / items that are completely hidden behind other walls.
Diffstat (limited to 'entity.cpp')
-rw-r--r--entity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/entity.cpp b/entity.cpp
index 1c0bb00..cabaae9 100644
--- a/entity.cpp
+++ b/entity.cpp
@@ -38,7 +38,7 @@ const QImage toAlpha(const QImage &image)
}
Entity::Entity(const QPointF &pos)
- : ProjectedItem(QRectF(-0.3, -0.4, 0.6, 0.9), false)
+ : ProjectedItem(QRectF(-0.3, -0.4, 0.6, 0.9), false, false)
, m_pos(pos)
, m_angle(180)
, m_walking(false)