aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen
diff options
context:
space:
mode:
authorPaul Gilbert2018-04-07 18:30:45 -0400
committerPaul Gilbert2018-04-07 18:30:45 -0400
commite5ff44eaf32bb4ca907f2bc4239ecd4332414ac9 (patch)
tree80271e30f1ae78863baa7a517169ada2c471b1f6 /engines/xeen
parentb8715dca0ed6d536dca45489a9b00763103c0107 (diff)
downloadscummvm-rg350-e5ff44eaf32bb4ca907f2bc4239ecd4332414ac9.tar.gz
scummvm-rg350-e5ff44eaf32bb4ca907f2bc4239ecd4332414ac9.tar.bz2
scummvm-rg350-e5ff44eaf32bb4ca907f2bc4239ecd4332414ac9.zip
XEEN: Fix gfx glitch in top-left corner of the minimap
Diffstat (limited to 'engines/xeen')
-rw-r--r--engines/xeen/interface_minimap.cpp6
1 files changed, 3 insertions, 3 deletions
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 &&