aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamu Laaksonen <laaksonen.sj@gmail.com>2012-12-10 23:50:10 +0200
committerSamu Laaksonen <laaksonen.sj@gmail.com>2012-12-10 23:50:10 +0200
commitad0b2bfa6a685cb768d33d2b15562931dc31e2a3 (patch)
tree7a8d9c8a61a26f1e4133a634c37baf2885f7fdfb
parentad19e537066742e1a5f9bbb8c3549a47480a33c1 (diff)
downloadprism-master.tar.gz
prism-master.zip
Level wallsHEADmaster
Level walls now follow width of the level instead of scene width
-rw-r--r--src/ActionScene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ActionScene.cpp b/src/ActionScene.cpp
index 436d2a8..36104d3 100644
--- a/src/ActionScene.cpp
+++ b/src/ActionScene.cpp
@@ -326,7 +326,7 @@ void ActionScene::loadMap(QString target)
}
}
- const int w = sceneRect().width() / 8;
+ const int w = m_map->width() * m_map->tileWidth();
const int h = sceneRect().height();
// top, bottom, left, right walls
addEdge(b2Vec2(0, 0), b2Vec2(P2M(w), 0));