diff options
author | Nipun Garg | 2019-06-21 07:51:08 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:53 +0200 |
commit | edb6133e42f2d701e16ad4bf1c2b9a144827ad5a (patch) | |
tree | d0aabd063f48db9a56d23f221327ae42bba58ad5 /engines | |
parent | 18763082bffe9e8702211e662bf246af2948dd0c (diff) | |
download | scummvm-rg350-edb6133e42f2d701e16ad4bf1c2b9a144827ad5a.tar.gz scummvm-rg350-edb6133e42f2d701e16ad4bf1c2b9a144827ad5a.tar.bz2 scummvm-rg350-edb6133e42f2d701e16ad4bf1c2b9a144827ad5a.zip |
HDB: Add Map::drawEnts()
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/map-loader.cpp | 5 | ||||
-rw-r--r-- | engines/hdb/map-loader.h | 1 |
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); |