aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/map-loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/map-loader.cpp')
-rw-r--r--engines/hdb/map-loader.cpp9
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]);
}
}