aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
Diffstat (limited to 'saga')
-rw-r--r--saga/actor.cpp5
-rw-r--r--saga/animation.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/saga/actor.cpp b/saga/actor.cpp
index f057630172..ffb53835cb 100644
--- a/saga/actor.cpp
+++ b/saga/actor.cpp
@@ -24,6 +24,7 @@
#include "saga/saga.h"
#include "saga/gfx.h"
+#include "saga/animation.h"
#include "saga/console.h"
#include "saga/script.h"
#include "saga/sndres.h"
@@ -1575,6 +1576,10 @@ bool Actor::getSpriteParams(CommonObjectData *commonObjectData, int &frameNumber
}
void Actor::drawActors() {
+ if (_vm->_anim->hasCutaway()) {
+ return;
+ }
+
if (_vm->_scene->currentSceneNumber() <= 0) {
return;
}
diff --git a/saga/animation.h b/saga/animation.h
index 2e245489c2..994ff7d512 100644
--- a/saga/animation.h
+++ b/saga/animation.h
@@ -127,6 +127,9 @@ public:
void finish(uint16 animId);
void resume(uint16 animId, int cycles);
int16 getCurrentFrame(uint16 animId);
+ bool hasCutaway(void) {
+ return _cutawayActive;
+ }
bool hasAnimation(uint16 animId) {
if (animId >= MAX_ANIMATIONS) {
if (animId < MAX_ANIMATIONS + ARRAYSIZE(_cutawayAnimations))