aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mads/nebular/nebular_scenes3.cpp4
-rw-r--r--engines/mads/palette.cpp12
-rw-r--r--engines/mads/palette.h2
3 files changed, 16 insertions, 2 deletions
diff --git a/engines/mads/nebular/nebular_scenes3.cpp b/engines/mads/nebular/nebular_scenes3.cpp
index 4652c51d13..4358aa45b8 100644
--- a/engines/mads/nebular/nebular_scenes3.cpp
+++ b/engines/mads/nebular/nebular_scenes3.cpp
@@ -3236,8 +3236,8 @@ void Scene319::step() {
break;
case 72:
- warning("TODO: sub7CBD8(-1, 0, 0);");
- warning("TODO: sub7CBE4(0, 0, 0);");
+ _vm->_palette->setColorFlags(0xFF, 0, 0);
+ _vm->_palette->setColorValues(0, 0, 0);
_vm->_palette->fadeOut(_vm->_palette->_mainPalette, 18, 228, 16, 1, 8, 248, 0, 0);
warning("TODO: shake_countdown = 1;");
_scene->_reloadSceneFlag = true;
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp
index e718059b67..a4608a6c1a 100644
--- a/engines/mads/palette.cpp
+++ b/engines/mads/palette.cpp
@@ -714,6 +714,18 @@ void Palette::setLowRange() {
_vm->_palette->setPalette(_mainPalette, 0, 4);
}
+void Palette::setColorFlags(byte r, byte g, byte b) {
+ _colorFlags[0] = r;
+ _colorFlags[1] = g;
+ _colorFlags[2] = b;
+}
+
+void Palette::setColorValues(byte r, byte g, byte b) {
+ _colorValues[0] = r;
+ _colorValues[1] = g;
+ _colorValues[2] = b;
+}
+
void Palette::fadeOut(byte palette[PALETTE_SIZE], int start, int count, int v1, int v2, int v3, int v4, int v5, int v6) {
warning("TODO: Palette::fadeOut()");
}
diff --git a/engines/mads/palette.h b/engines/mads/palette.h
index e1f7de838d..3af0c2805b 100644
--- a/engines/mads/palette.h
+++ b/engines/mads/palette.h
@@ -308,6 +308,8 @@ public:
warning("TODO: Palette::close");
}
+ void setColorFlags(byte r, byte g, byte b);
+ void setColorValues(byte r, byte g, byte b);
void fadeOut(byte palette[PALETTE_SIZE], int start, int count, int v1, int v2, int v3, int v4, int v5, int v6);
void lock();