aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/mads/scene.cpp10
-rw-r--r--engines/mads/scene.h2
2 files changed, 9 insertions, 3 deletions
diff --git a/engines/mads/scene.cpp b/engines/mads/scene.cpp
index 4e7ec2f61c..01cea1166d 100644
--- a/engines/mads/scene.cpp
+++ b/engines/mads/scene.cpp
@@ -841,8 +841,14 @@ void Scene::playSpeech(int idx) {
_vm->_audio->playSound(idx - 1);
}
-void Scene::sceneScale(int front_y, int front_scale, int back_y, int back_scale) {
- warning("TODO: Scene:scaleRoom");
+void Scene::sceneScale(int yFront, int maxScale, int yBack, int minScale) {
+ _sceneInfo->_yBandsEnd = yFront;
+ _sceneInfo->_maxScale = maxScale;
+ _sceneInfo->_yBandsStart = yBack;
+ _sceneInfo->_minScale = minScale;
+
+ _bandsRange = _sceneInfo->_yBandsEnd - _sceneInfo->_yBandsStart;
+ _scaleRange = _sceneInfo->_maxScale - _sceneInfo->_minScale;
}
void Scene::animations_tick() {
diff --git a/engines/mads/scene.h b/engines/mads/scene.h
index 9a9ebf71de..e1eee9154a 100644
--- a/engines/mads/scene.h
+++ b/engines/mads/scene.h
@@ -263,7 +263,7 @@ public:
void deleteSequence(int idx);
void loadSpeech(int idx);
void playSpeech(int idx);
- void sceneScale(int front_y, int front_scale, int back_y, int back_scale);
+ void sceneScale(int yFront, int maxScale, int yBack, int minScale);
void animations_tick();
int _speechReady;