aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sequences_hof.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/sequences_hof.cpp')
-rw-r--r--engines/kyra/sequences_hof.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/kyra/sequences_hof.cpp b/engines/kyra/sequences_hof.cpp
index 26919215a0..84b6801091 100644
--- a/engines/kyra/sequences_hof.cpp
+++ b/engines/kyra/sequences_hof.cpp
@@ -133,8 +133,6 @@ void KyraEngine_HoF::seq_playSequences(int startSeq, int endSeq) {
}
if (cseq.flags & 1) {
- int w2 = _seqWsa->width();
- int h2 = _seqWsa->height();
int x = cseq.xPos;
int y = cseq.yPos;
@@ -142,13 +140,13 @@ void KyraEngine_HoF::seq_playSequences(int startSeq, int endSeq) {
if (_seqWsa) {
if (x < 0) {
+ _seqWsa->setWidth(_seqWsa->width() + x);
x = 0;
- w2 = 0;
}
if (y < 0) {
+ _seqWsa->setHeight(_seqWsa->height() + y);
y = 0;
- h2 = 0;
}
if (cseq.xPos + _seqWsa->width() > 319)