mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 12:05:53 +00:00
MADS: Fixed incorrect parameter order in scene 101 chair sit down
This commit is contained in:
parent
4225304a34
commit
d8c35b71db
@ -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);
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user