From e5ff44eaf32bb4ca907f2bc4239ecd4332414ac9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 7 Apr 2018 18:30:45 -0400 Subject: XEEN: Fix gfx glitch in top-left corner of the minimap --- engines/xeen/interface_minimap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/xeen') diff --git a/engines/xeen/interface_minimap.cpp b/engines/xeen/interface_minimap.cpp index 5ab10696bc..583156cf5a 100644 --- a/engines/xeen/interface_minimap.cpp +++ b/engines/xeen/interface_minimap.cpp @@ -141,7 +141,7 @@ void InterfaceMinimap::drawIndoorsMinimap() { } // Draw the specific surface type for each cell - for (int yp = MINIMAP_YSTART + (TILE_HEIGHT / 2), mazeY = pt.y + MINIMAP_DIFF; + for (int yp = MINIMAP_YSTART + (TILE_HEIGHT / 2) + 1, mazeY = pt.y + MINIMAP_DIFF; mazeY >= (pt.y - MINIMAP_DIFF); yp += TILE_HEIGHT, --mazeY) { for (int xp = MINIMAP_XSTART + (TILE_WIDTH / 2), mazeX = pt.x - MINIMAP_DIFF; mazeX <= (pt.x + MINIMAP_DIFF); xp += TILE_WIDTH, ++mazeX) { @@ -166,8 +166,8 @@ void InterfaceMinimap::drawIndoorsMinimap() { } // Handle drawing surface sprites partially clipped at the left edge - for (int yp = MINIMAP_YSTART, mazeY = pt.y + MINIMAP_DIFF; mazeY >= (pt.y - MINIMAP_DIFF); - yp += TILE_HEIGHT, --mazeY) { + for (int yp = MINIMAP_YSTART + (TILE_HEIGHT / 2) + 1, mazeY = pt.y + MINIMAP_DIFF; + mazeY >= (pt.y - MINIMAP_DIFF); yp += TILE_HEIGHT, --mazeY) { v = map.mazeLookup(Common::Point(pt.x - MINIMAP_DIFF - 1, mazeY), 0, 0xffff); if (v != INVALID_CELL && map._currentSurfaceId && -- cgit v1.2.3