aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/nebular/nebular_scenes1.cpp3
-rw-r--r--engines/mads/sequence.h7
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/mads/nebular/nebular_scenes1.cpp b/engines/mads/nebular/nebular_scenes1.cpp
index f317b2832d..b2e07dc0e6 100644
--- a/engines/mads/nebular/nebular_scenes1.cpp
+++ b/engines/mads/nebular/nebular_scenes1.cpp
@@ -2455,8 +2455,7 @@ void Scene109::step() {
_hungryFl = true;
}
- // FIXME: The fish animation never moves, so x is never updated and the scene freezes
- if (_eatingFirstFish /*&& (_scene->_sequences[_globals._sequenceIndexes[10]]._msgPos.x >= 178)*/) {
+ if (_eatingFirstFish && (_scene->_sequences[_globals._sequenceIndexes[10]]._msgPos.x >= 178)) {
_globals._sequenceIndexes[9] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[9], false, 4, 1, 0, 0);
_scene->_sequences.setDepth(_globals._sequenceIndexes[9], 4);
_scene->_sequences.addSubEntry(_globals._sequenceIndexes[9], SEQUENCE_TRIGGER_SPRITE, 29, 72);
diff --git a/engines/mads/sequence.h b/engines/mads/sequence.h
index 8abef5c3e1..bb084cc0f1 100644
--- a/engines/mads/sequence.h
+++ b/engines/mads/sequence.h
@@ -126,7 +126,12 @@ public:
void setScale(int spriteIdx, int scale);
void setMsgLayout(int seqIndex);
void setDone(int seqIndex);
- void setMotion(int seqIndex, int flags, int deltaX, int deltaY) { warning("TODO: setMotion()"); }
+ void setMotion(int seqIndex, int flags, int deltaX, int deltaY) {
+ warning("TODO: setMotion()");
+ // HACK: Just offset by the delta for now
+ _entries[seqIndex]._msgPos.x += deltaX;
+ _entries[seqIndex]._msgPos.y += deltaY;
+ }
};
} // End of namespace MADS