From 80b76d24f8d26eb3463a9719f83d357efbd6a258 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Fri, 21 Jun 2019 07:52:10 +0530 Subject: HDB: Add animating tile lists to Map::load --- engines/hdb/map-loader.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/hdb/map-loader.cpp b/engines/hdb/map-loader.cpp index dff7f0a261..b04beccd5a 100644 --- a/engines/hdb/map-loader.cpp +++ b/engines/hdb/map-loader.cpp @@ -126,9 +126,11 @@ bool Map::load(Common::SeekableReadStream *stream) { g_hdb->_drawMan->setSky(sky); _mapX = _mapY = 0; - /* - TODO: Add the animating tile lists - */ + // Setup animating Tile lists + for (int i = 0; i < _width*_height;i++) { + addBGTileAnimation(i % _width, i / _width); + addFGTileAnimation(i % _width, i / _width); + } struct { AIType type; -- cgit v1.2.3