aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/set_effects.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/set_effects.cpp')
-rw-r--r--engines/bladerunner/set_effects.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/bladerunner/set_effects.cpp b/engines/bladerunner/set_effects.cpp
index 3d46e41e7b..99cb030e8f 100644
--- a/engines/bladerunner/set_effects.cpp
+++ b/engines/bladerunner/set_effects.cpp
@@ -58,10 +58,10 @@ void SetEffects::read(Common::ReadStream *stream, int frameCount) {
Fog *fog = nullptr;
switch (type) {
case 0:
- fog = new FogCone();
+ fog = new FogSphere();
break;
case 1:
- fog = new FogSphere();
+ fog = new FogCone();
break;
case 2:
fog = new FogBox();
@@ -92,6 +92,9 @@ void SetEffects::reset() {
}
void SetEffects::setupFrame(int frame) {
+ for (Fog *fog = _fogs; fog != nullptr; fog = fog->_next) {
+ fog->setupFrame(frame);
+ }
}
void SetEffects::setFadeColor(float r, float g, float b) {