From fae72b4af815724d6bd3f357f11f6a159c054d02 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Sun, 11 Mar 2007 18:49:32 +0000 Subject: Fixed a bug that made the engine not draw the last row and column of the map. --- src/gui/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') 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) { -- cgit v1.2.3-70-g09d2