diff options
Diffstat (limited to 'src/ActionScene.cpp')
| -rw-r--r-- | src/ActionScene.cpp | 2 |
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));
|
