summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 098b913a..513a7ee5 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -135,8 +135,8 @@ Viewport::draw(gcn::Graphics *gcnGraphics)
};
// Don't move camera so that the end of the map is on screen
- int viewXmax = ((mMap->getWidth() - 1) * 32) - graphics->getWidth();
- int viewYmax = ((mMap->getHeight() - 1) * 32) - graphics->getHeight();
+ int viewXmax = (mMap->getWidth() * 32) - graphics->getWidth();
+ int viewYmax = (mMap->getHeight() * 32) - graphics->getHeight();
if (mMap)
{
if (mViewX < 0) {