summaryrefslogtreecommitdiffstats
path: root/sigmodr/widgets/MapScene.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-20 01:42:27 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-20 01:42:27 -0400
commit4837126a68b60305c044816a403e28fd88bec5d7 (patch)
tree15d7fffbf87b0e8bff3275985724d92c69b29772 /sigmodr/widgets/MapScene.cpp
parent027edaa286ea25b5a526655c47f3f1f4c0827832 (diff)
downloadsigen-4837126a68b60305c044816a403e28fd88bec5d7.tar.gz
sigen-4837126a68b60305c044816a403e28fd88bec5d7.tar.xz
sigen-4837126a68b60305c044816a403e28fd88bec5d7.zip
Don't draw what we can't edit
Diffstat (limited to 'sigmodr/widgets/MapScene.cpp')
-rw-r--r--sigmodr/widgets/MapScene.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/sigmodr/widgets/MapScene.cpp b/sigmodr/widgets/MapScene.cpp
index 2f1a853b..4dcd60e9 100644
--- a/sigmodr/widgets/MapScene.cpp
+++ b/sigmodr/widgets/MapScene.cpp
@@ -50,13 +50,13 @@ MapScene::MapScene(Map* map, QObject* parent) :
m_map(map),
m_tileBox(new KComboBox)
{
- for (int i = 0; i < m_map->effectCount(); ++i)
- {
- MapEffect* effect = m_map->effect(i);
- EffectItem* item = new EffectItem(effect, this);
- m_effects[effect] = item;
- addItem(item);
- }
+// for (int i = 0; i < m_map->effectCount(); ++i)
+// {
+// MapEffect* effect = m_map->effect(i);
+// EffectItem* item = new EffectItem(effect, this);
+// m_effects[effect] = item;
+// addItem(item);
+// }
for (int i = 0; i < m_map->tileCount(); ++i)
{
MapTile* tile = m_map->tile(i);
@@ -71,13 +71,13 @@ MapScene::MapScene(Map* map, QObject* parent) :
m_trainers[trainer] = item;
addItem(item);
}
- for (int i = 0; i < m_map->warpCount(); ++i)
- {
- MapWarp* warp = m_map->warp(i);
- WarpItem* item = new WarpItem(warp, this);
- m_warps[warp] = item;
- addItem(item);
- }
+// for (int i = 0; i < m_map->warpCount(); ++i)
+// {
+// MapWarp* warp = m_map->warp(i);
+// WarpItem* item = new WarpItem(warp, this);
+// m_warps[warp] = item;
+// addItem(item);
+// }
int maxWidth = 0;
int maxHeight = 0;
for (int i = 0; i < m_map->game()->tileCount(); ++i)