aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/nebular
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-19 22:49:14 -0400
committerPaul Gilbert2014-04-19 22:49:14 -0400
commit1362414e77bfbd17d7a0224ce5fb7275c793c7c4 (patch)
treeb0b2447e53849b79ee20debbe2b0e0fffaa1742d /engines/mads/nebular
parentad6a80cae796f781e7c8a0e53ad008504c54e266 (diff)
downloadscummvm-rg350-1362414e77bfbd17d7a0224ce5fb7275c793c7c4.tar.gz
scummvm-rg350-1362414e77bfbd17d7a0224ce5fb7275c793c7c4.tar.bz2
scummvm-rg350-1362414e77bfbd17d7a0224ce5fb7275c793c7c4.zip
MADS: Implement palette animation code
Diffstat (limited to 'engines/mads/nebular')
-rw-r--r--engines/mads/nebular/nebular_scenes3.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mads/nebular/nebular_scenes3.cpp b/engines/mads/nebular/nebular_scenes3.cpp
index 603f87535c..8287605270 100644
--- a/engines/mads/nebular/nebular_scenes3.cpp
+++ b/engines/mads/nebular/nebular_scenes3.cpp
@@ -1786,10 +1786,10 @@ void Scene313::enter() {
}
if (_globals[kAfterHavoc]) {
- for (uint16 i = 0; i < _scene->_animPalData.size(); i++) {
- int palIdx = _scene->_animPalData[i]._firstColorIndex;
- int size = _scene->_animPalData[i]._colorCount * 3;
- memset(&_vm->_palette->_savedPalette[palIdx], 0, size);
+ for (uint16 i = 0; i < _scene->_paletteCycles.size(); i++) {
+ int palIdx = _scene->_paletteCycles[i]._firstColorIndex;
+ int size = _scene->_paletteCycles[i]._colorCount * 3;
+ memset(&_vm->_palette->_cyclingPalette[palIdx], 0, size);
memset(&_vm->_palette->_mainPalette[palIdx], 0, size);
}
}