aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-11 08:19:18 -0400
committerPaul Gilbert2014-04-11 08:19:18 -0400
commitd8c35b71dbd310d2012d501529867faab4875b29 (patch)
treec96977395d6a34a05e9949e0f97b6acc5b9cf158
parent4225304a34a5fc04280e72206c4d3dea13e29ad8 (diff)
downloadscummvm-rg350-d8c35b71dbd310d2012d501529867faab4875b29.tar.gz
scummvm-rg350-d8c35b71dbd310d2012d501529867faab4875b29.tar.bz2
scummvm-rg350-d8c35b71dbd310d2012d501529867faab4875b29.zip
MADS: Fixed incorrect parameter order in scene 101 chair sit down
-rw-r--r--engines/mads/nebular/nebular_scenes1.cpp2
-rw-r--r--engines/mads/sequence.cpp8
-rw-r--r--engines/mads/sequence.h4
3 files changed, 7 insertions, 7 deletions
diff --git a/engines/mads/nebular/nebular_scenes1.cpp b/engines/mads/nebular/nebular_scenes1.cpp
index c9a6165488..7cc0ded2f7 100644
--- a/engines/mads/nebular/nebular_scenes1.cpp
+++ b/engines/mads/nebular/nebular_scenes1.cpp
@@ -337,7 +337,7 @@ void Scene101::actions() {
switch (_game._trigger) {
case 0:
_scene->_sequences.remove(_globals._spriteIndexes[27]);
- _globals._spriteIndexes[26] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[11], false, 3, 0, 0, 1);
+ _globals._spriteIndexes[26] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[11], false, 3, 1);
_scene->_sequences.setAnimRange(_globals._spriteIndexes[26], 1, 17);
_scene->_sequences.addSubEntry(_globals._spriteIndexes[26], SM_FRAME_INDEX, 10, 1);
_scene->_sequences.addSubEntry(_globals._spriteIndexes[26], SM_0, 0, 2);
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp
index fa6d745675..409dc303fe 100644
--- a/engines/mads/sequence.cpp
+++ b/engines/mads/sequence.cpp
@@ -55,7 +55,7 @@ SequenceEntry::SequenceEntry() {
_entries._count = 0;
Common::fill(&_entries._mode[0], &_entries._mode[SEQUENCE_ENTRY_SUBSET_MAX], SM_0);
Common::fill(&_entries._frameIndex[0], &_entries._frameIndex[SEQUENCE_ENTRY_SUBSET_MAX], 0);
- Common::fill(&_entries._abortVal[0], &_entries._abortVal[SEQUENCE_ENTRY_SUBSET_MAX], 0);
+ Common::fill(&_entries._trigger[0], &_entries._trigger[SEQUENCE_ENTRY_SUBSET_MAX], 0);
}
/*------------------------------------------------------------------------*/
@@ -80,14 +80,14 @@ void SequenceList::clear() {
}
}
-bool SequenceList::addSubEntry(int index, SequenceSubEntryMode mode, int frameIndex, int abortVal) {
+bool SequenceList::addSubEntry(int index, SequenceSubEntryMode mode, int frameIndex, int trigger) {
if (_entries[index]._entries._count >= SEQUENCE_ENTRY_SUBSET_MAX)
return true;
int subIndex = _entries[index]._entries._count++;
_entries[index]._entries._mode[subIndex] = mode;
_entries[index]._entries._frameIndex[subIndex] = frameIndex;
- _entries[index]._entries._abortVal[subIndex] = abortVal;
+ _entries[index]._entries._trigger[subIndex] = trigger;
return false;
}
@@ -325,7 +325,7 @@ bool SequenceList::loadSprites(int seqIndex) {
}
if (idx >= 0) {
- _vm->_game->_trigger = seqEntry._entries._abortVal[idx];
+ _vm->_game->_trigger = seqEntry._entries._trigger[idx];
_vm->_game->_triggerMode = seqEntry._triggerMode;
if (seqEntry._triggerMode != KERNEL_TRIGGER_DAEMON)
diff --git a/engines/mads/sequence.h b/engines/mads/sequence.h
index 6d12367fd9..99e8951688 100644
--- a/engines/mads/sequence.h
+++ b/engines/mads/sequence.h
@@ -42,7 +42,7 @@ struct SequenceSubEntries {
int _count;
SequenceSubEntryMode _mode[SEQUENCE_ENTRY_SUBSET_MAX];
int _frameIndex[SEQUENCE_ENTRY_SUBSET_MAX];
- int8 _abortVal[SEQUENCE_ENTRY_SUBSET_MAX];
+ int8 _trigger[SEQUENCE_ENTRY_SUBSET_MAX];
};
struct SequenceEntry {
@@ -95,7 +95,7 @@ public:
SequenceEntry &operator[](int index) { return _entries[index]; }
void clear();
- bool addSubEntry(int index, SequenceSubEntryMode mode, int frameIndex, int abortVal);
+ bool addSubEntry(int index, SequenceSubEntryMode mode, int frameIndex, int trigger);
int add(int spriteListIndex, bool flipped, int frameIndex, int triggerCountdown, int delayTicks,
int extraTicks, int numTicks, int msgX, int msgY, bool nonFixed, char scale, uint8 depth,
int frameInc, SpriteAnimType animType, int numSprites, int frameStart);