mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 23:43:34 +00:00
HDB: Fix copy/paste error in map centering code.
This prevents us from seeing NO TILES in MAP10
This commit is contained in:
parent
edc68ef7b1
commit
f778e08a1a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user