From 1362414e77bfbd17d7a0224ce5fb7275c793c7c4 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 19 Apr 2014 22:49:14 -0400 Subject: MADS: Implement palette animation code --- engines/mads/nebular/nebular_scenes3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/mads/nebular') 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); } } -- cgit v1.2.3