summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-28 22:05:00 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-28 22:05:00 -0400
commit2d8adb792eef19051b54a28521204601666dcf74 (patch)
tree1d67db1bfbc234522048d5fb0570413d46fec216
parent9e43147c2eae2cf3f57d3144d9f50c1423ff6f52 (diff)
downloadsigen-2d8adb792eef19051b54a28521204601666dcf74.tar.gz
sigen-2d8adb792eef19051b54a28521204601666dcf74.tar.xz
sigen-2d8adb792eef19051b54a28521204601666dcf74.zip
Only add world maps to the scene
-rw-r--r--sigmodr/widgets/mapeditor/WorldMapScene.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sigmodr/widgets/mapeditor/WorldMapScene.cpp b/sigmodr/widgets/mapeditor/WorldMapScene.cpp
index c3c85766..59c26a7a 100644
--- a/sigmodr/widgets/mapeditor/WorldMapScene.cpp
+++ b/sigmodr/widgets/mapeditor/WorldMapScene.cpp
@@ -38,7 +38,8 @@ WorldMapScene::WorldMapScene(Game* game, QObject* parent) :
for (int i = 0; i < m_game->mapCount(); ++i)
{
Map* map = m_game->map(i);
- // TODO: Check if the map is accessible on its edges
+ if (!map->isWorld())
+ continue;
WorldMapItem* item = new WorldMapItem(m_game, map, this);
connect(item, SIGNAL(changed()), this, SIGNAL(changed()));
connect(this, SIGNAL(maskTiles(bool)), item, SIGNAL(maskTiles(bool)));