diff options
author | Nipun Garg | 2019-06-21 06:39:13 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:53 +0200 |
commit | 7dda9ea0204d6152015fa0ff4dd009d3d555a117 (patch) | |
tree | e9ef1618d6922140a855a31998592a58119895a3 /engines | |
parent | cad0e0bb9886f97c671368cf48df9735c1a7cbbc (diff) | |
download | scummvm-rg350-7dda9ea0204d6152015fa0ff4dd009d3d555a117.tar.gz scummvm-rg350-7dda9ea0204d6152015fa0ff4dd009d3d555a117.tar.bz2 scummvm-rg350-7dda9ea0204d6152015fa0ff4dd009d3d555a117.zip |
HDB: Process C_CLEAR_FG, C_SET_FG, C_SET_BG
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index d279050cd3..c868e6be8e 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -231,6 +231,21 @@ void AI::processCines() { complete = true; } break; + case C_CLEAR_FG: + g_hdb->_map->setMapFGTileIndex((int)_cine[i]->x, (int)_cine[i]->y, -1); + g_hdb->_map->removeFGTileAnimation((int)_cine[i]->x, (int)_cine[i]->y); + complete = true; + break; + case C_SET_BG: + g_hdb->_map->setMapBGTileIndex((int)_cine[i]->x, (int)_cine[i]->y, (int)_cine[i]->start); + g_hdb->_map->addBGTileAnimation((int)_cine[i]->x, (int)_cine[i]->y); + complete = true; + break; + case C_SET_FG: + g_hdb->_map->setMapFGTileIndex((int)_cine[i]->x, (int)_cine[i]->y, (int)_cine[i]->start); + g_hdb->_map->addFGTileAnimation((int)_cine[i]->x, (int)_cine[i]->y); + complete = true; + break; default: warning("STUB: AI::PROCESSCINES incomplete for %d", _cine[i]->cmdType); break; |