diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-05-28 22:05:00 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-05-28 22:05:00 -0400 |
commit | 2d8adb792eef19051b54a28521204601666dcf74 (patch) | |
tree | 1d67db1bfbc234522048d5fb0570413d46fec216 | |
parent | 9e43147c2eae2cf3f57d3144d9f50c1423ff6f52 (diff) | |
download | sigen-2d8adb792eef19051b54a28521204601666dcf74.tar.gz sigen-2d8adb792eef19051b54a28521204601666dcf74.tar.xz sigen-2d8adb792eef19051b54a28521204601666dcf74.zip |
Only add world maps to the scene
-rw-r--r-- | sigmodr/widgets/mapeditor/WorldMapScene.cpp | 3 |
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))); |