From ad0b2bfa6a685cb768d33d2b15562931dc31e2a3 Mon Sep 17 00:00:00 2001 From: Samu Laaksonen Date: Mon, 10 Dec 2012 23:50:10 +0200 Subject: Level walls Level walls now follow width of the level instead of scene width --- src/ActionScene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3