From 9257a3d498fc496b45c33365a18fd928d759de0d Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 7 Jun 2019 23:26:18 +0530 Subject: HDB: Complete loadTiles() --- engines/hdb/map-loader.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index 2640d79817..9537224ce3 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -104,10 +104,11 @@ int Map::loadTiles() { for (uint j = 0; j < _height; j++) { for (uint i = 0; i < _width; i++) { tile = _background[j * _width + i]; - /* - TODO: Load tiles through DrawMan - */ - warning("STUB: MAP LOAD TILES INCOMPLETE"); + if ((temp = g_hdb->_drawMan->isSky(tile)) && !skyIndex) { + skyIndex = temp; + } + g_hdb->_drawMan->getTile(tile); + g_hdb->_drawMan->getTile(_foreground[j * _width + i]); } } -- cgit v1.2.3