summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-03-11 18:49:32 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-03-11 18:49:32 +0000
commitfae72b4af815724d6bd3f357f11f6a159c054d02 (patch)
tree61d92169043714e8229d5d57552a0f688d3bf565 /src/gui
parent79ed4a7f9ab912df90bb5cd08f74ddf0d1f088d2 (diff)
downloadmana-fae72b4af815724d6bd3f357f11f6a159c054d02.tar.gz
mana-fae72b4af815724d6bd3f357f11f6a159c054d02.tar.bz2
mana-fae72b4af815724d6bd3f357f11f6a159c054d02.tar.xz
mana-fae72b4af815724d6bd3f357f11f6a159c054d02.zip
Fixed a bug that made the engine not draw the last row and column of the map.
Diffstat (limited to 'src/gui')
-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) {