From f778e08a1ae5ee99d4eb3a244b113f3e3ffb2d02 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 20 Jul 2019 00:03:36 +0200 Subject: HDB: Fix copy/paste error in map centering code. This prevents us from seeing NO TILES in MAP10 --- engines/hdb/map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index daec9a8a78..822980140d 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -1143,7 +1143,7 @@ void Map::centerMapXY(int x, int y) { // Scan from centerY to top edge miny = 0; - for (int i = checky - 1; i >= checkx - (kScreenTileHeight / 2); i--) { + for (int i = checky - 1; i >= checky - (kScreenTileHeight / 2); i--) { if (!getMapBGTileIndex(checkx, i)) { // +1 because we don't want to see one whole tile miny = (1 + i + (kScreenTileHeight / 2)) * kTileHeight; -- cgit v1.2.3