aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/map-loader.cpp5
-rw-r--r--engines/hdb/map-loader.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp
index 3b2fbe3792..dff7f0a261 100644
--- a/engines/hdb/map-loader.cpp
+++ b/engines/hdb/map-loader.cpp
@@ -81,7 +81,6 @@ bool Map::load(Common::SeekableReadStream *stream) {
Common::hexdump((const byte *)_background, 512);
}
-
// Reading Foreground
_foreground = new uint16[_width * _height];
stream->seek(_foregroundOffset);
@@ -614,6 +613,10 @@ void Map::draw() {
*/
}
+void Map::drawEnts() {
+ g_hdb->_ai->drawEnts(_mapX, _mapY, kScreenXTiles * kTileWidth, kScreenYTiles * kTileHeight);
+}
+
uint32 Map::getMapBGTileFlags(int x, int y) {
if (x < 0 || x >= _width || y < 0 || y >= _height) {
return 0;
diff --git a/engines/hdb/map-loader.h b/engines/hdb/map-loader.h
index 9451b5371d..9a44cd02ba 100644
--- a/engines/hdb/map-loader.h
+++ b/engines/hdb/map-loader.h
@@ -62,6 +62,7 @@ public:
int loadTiles();
bool load(Common::SeekableReadStream *stream);
void draw();
+ void drawEnts();
uint32 getMapBGTileFlags(int x, int y);
uint32 getMapFGTileFlags(int x, int y);