diff options
author | Eugene Sandulenko | 2019-07-03 00:47:35 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:08 +0200 |
commit | 2e171ad5fe0f34ec788b9a057819b10583e46bf8 (patch) | |
tree | e0f8f320ac6372d18ae12b1ea377a3b571af39e3 /engines/hdb | |
parent | d5e932496930ad8f85b163baba3302b61d86d1d1 (diff) | |
download | scummvm-rg350-2e171ad5fe0f34ec788b9a057819b10583e46bf8.tar.gz scummvm-rg350-2e171ad5fe0f34ec788b9a057819b10583e46bf8.tar.bz2 scummvm-rg350-2e171ad5fe0f34ec788b9a057819b10583e46bf8.zip |
HDB: Fix tile animation speed
Diffstat (limited to 'engines/hdb')
-rw-r--r-- | engines/hdb/map.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hdb/map.cpp b/engines/hdb/map.cpp index ee0c67bc8d..ccad3b4130 100644 --- a/engines/hdb/map.cpp +++ b/engines/hdb/map.cpp @@ -700,7 +700,7 @@ void Map::draw() { } // Animate MEDIUM Map Tiles - if (!(_animCycle % kAnimFastFrames)) { + if (!(_animCycle % kAnimMediumFrames)) { for (Common::Array<uint32>::iterator it = _listBGAnimMedium.begin(); it != _listBGAnimMedium.end(); it++) { _background[(*it)] = g_hdb->_gfx->animateTile(_background[(*it)]); } @@ -711,7 +711,7 @@ void Map::draw() { } // Animate SLOW Map Tiles - if (!(_animCycle % kAnimFastFrames)) { + if (!(_animCycle % kAnimSlowFrames)) { for (Common::Array<uint32>::iterator it = _listBGAnimSlow.begin(); it != _listBGAnimSlow.end(); it++) { _background[(*it)] = g_hdb->_gfx->animateTile(_background[(*it)]); } @@ -802,11 +802,11 @@ void Map::addBGTileAnimation(int x, int y) { uint32 flags = tile->_flags; // BACKGROUND - if (flags & kFlagAnimFast) { + if ((flags & kFlagAnimFast) == kFlagAnimFast) { // check 'fast' first since it's a combo of slow & medium _listBGAnimFast.push_back(i); - } else if (flags & kFlagAnimSlow) { + } else if ((flags & kFlagAnimSlow) == kFlagAnimSlow) { _listBGAnimSlow.push_back(i); - } else if (flags & kFlagAnimMedium) { + } else if ((flags & kFlagAnimMedium) == kFlagAnimMedium) { _listBGAnimMedium.push_back(i); } } |