diff options
author | Strangerke | 2019-07-26 23:24:25 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:29 +0200 |
commit | 2e3a36acbac4ffed5660567068e68be332b58b3b (patch) | |
tree | 0efe5ea744b31e89d7039b99268620c130f3e313 | |
parent | 74f3917db79f191c23510d5a90732251c5fab75d (diff) | |
download | scummvm-rg350-2e3a36acbac4ffed5660567068e68be332b58b3b.tar.gz scummvm-rg350-2e3a36acbac4ffed5660567068e68be332b58b3b.tar.bz2 scummvm-rg350-2e3a36acbac4ffed5660567068e68be332b58b3b.zip |
HDB: Simplify animateEntity by removing a useless call to getMapBGTileFlags()
-rw-r--r-- | engines/hdb/ai-funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/hdb/ai-funcs.cpp b/engines/hdb/ai-funcs.cpp index 7258fa00eb..d3d98d79d4 100644 --- a/engines/hdb/ai-funcs.cpp +++ b/engines/hdb/ai-funcs.cpp @@ -1331,7 +1331,7 @@ void AI::animateEntity(AIEntity *e) { e->state = state; } } - } else if (((flags = g_hdb->_map->getMapBGTileFlags(e->tileX, e->tileY)) & kFlagWater) && (e->type == AI_MAGIC_EGG || e->type == AI_ICE_BLOCK)) { + } else if ((flags & kFlagWater) && (e->type == AI_MAGIC_EGG || e->type == AI_ICE_BLOCK)) { // And no foreground tile is there if (g_hdb->_map->getMapFGTileIndex(e->tileX, e->tileY) < 0 && !checkFloating(e->tileX, e->tileY)) { if ((flags & kFlagSlime) == kFlagSlime) { |