diff options
author | Nipun Garg | 2019-06-07 23:26:18 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:44 +0200 |
commit | 9257a3d498fc496b45c33365a18fd928d759de0d (patch) | |
tree | 5fabb3b4252d732f5d56745fee60fe6846ed50f2 | |
parent | 7cca1f0e1c5ca4806fc90085a2b72b9b456c46a4 (diff) | |
download | scummvm-rg350-9257a3d498fc496b45c33365a18fd928d759de0d.tar.gz scummvm-rg350-9257a3d498fc496b45c33365a18fd928d759de0d.tar.bz2 scummvm-rg350-9257a3d498fc496b45c33365a18fd928d759de0d.zip |
HDB: Complete loadTiles()
-rw-r--r-- | engines/hdb/map-loader.cpp | 9 |
1 files 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]); } } |