aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-07-20 00:03:36 +0200
committerEugene Sandulenko2019-09-03 17:17:25 +0200
commitf778e08a1ae5ee99d4eb3a244b113f3e3ffb2d02 (patch)
treeac0c4f8c2e89b9d361e483480da9ed3c4a815afb /engines
parentedc68ef7b1f6ba89092b2f4c41f3594ae15bd4eb (diff)
downloadscummvm-rg350-f778e08a1ae5ee99d4eb3a244b113f3e3ffb2d02.tar.gz
scummvm-rg350-f778e08a1ae5ee99d4eb3a244b113f3e3ffb2d02.tar.bz2
scummvm-rg350-f778e08a1ae5ee99d4eb3a244b113f3e3ffb2d02.zip
HDB: Fix copy/paste error in map centering code.
This prevents us from seeing NO TILES in MAP10
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/map.cpp2
1 files changed, 1 insertions, 1 deletions
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;