diff options
author | Strangerke | 2015-10-15 11:46:11 +0200 |
---|---|---|
committer | Strangerke | 2015-10-15 11:46:11 +0200 |
commit | b5167ceef64e225217bf2c02e1a72e7cc85c4145 (patch) | |
tree | b903eaad6c1d35a1eb7bac36dc5894726397c1fb /engines/mads/phantom/phantom_scenes1.cpp | |
parent | 79fbcb96c3532e730ad8298d96f56f4a52c77ead (diff) | |
download | scummvm-rg350-b5167ceef64e225217bf2c02e1a72e7cc85c4145.tar.gz scummvm-rg350-b5167ceef64e225217bf2c02e1a72e7cc85c4145.tar.bz2 scummvm-rg350-b5167ceef64e225217bf2c02e1a72e7cc85c4145.zip |
MADS: Phantom: Fix calls to addSpriteCycle, remove duplicated sequence function
Diffstat (limited to 'engines/mads/phantom/phantom_scenes1.cpp')
-rw-r--r-- | engines/mads/phantom/phantom_scenes1.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/mads/phantom/phantom_scenes1.cpp b/engines/mads/phantom/phantom_scenes1.cpp index 979f97854d..5cb811a236 100644 --- a/engines/mads/phantom/phantom_scenes1.cpp +++ b/engines/mads/phantom/phantom_scenes1.cpp @@ -1163,7 +1163,7 @@ void Scene103::step() { switch (_game._trigger) { case 65: _scene->deleteSequence(_globals._sequenceIndexes[1]); - _globals._sequenceIndexes[1] = _scene->_sequences.addBackwardSequence(_globals._spriteIndexes[1], false, 8, 0, 0, 1); + _globals._sequenceIndexes[1] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[1], false, 8, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[1], 14); _scene->_sequences.setRange(_globals._sequenceIndexes[1], 1, 6); _scene->_sequences.setTrigger(_globals._sequenceIndexes[1], 0, 0, 66); @@ -1192,7 +1192,7 @@ void Scene103::step() { switch (_game._trigger) { case 100: _scene->deleteSequence(_globals._sequenceIndexes[10]); - _globals._sequenceIndexes[10] = _scene->_sequences.addBackwardSequence(_globals._spriteIndexes[10], false, 6, 0, 0, 1); + _globals._sequenceIndexes[10] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[10], false, 6, 1); _scene->_sequences.setTrigger(_globals._sequenceIndexes[10], 0, 0, 101); _scene->_sequences.setRange(_globals._sequenceIndexes[10], -1, -2); _scene->_sequences.setDepth(_globals._sequenceIndexes[10], 4); @@ -1218,7 +1218,7 @@ void Scene103::step() { _guardFrameFl = true; _scene->deleteSequence(_globals._sequenceIndexes[0]); _scene->deleteSequence(_globals._sequenceIndexes[9]); - _globals._sequenceIndexes[0] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[0], false, 6, 0, 0, 1); + _globals._sequenceIndexes[0] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[0], false, 6, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[0], 14); _scene->_sequences.setRange(_globals._sequenceIndexes[0], -1, -2); _scene->_sequences.setTrigger(_globals._sequenceIndexes[0], 0, 0, 105); @@ -1229,7 +1229,7 @@ void Scene103::step() { _guardFrameFl = true; _scene->deleteSequence(_globals._sequenceIndexes[0]); _scene->deleteSequence(_globals._sequenceIndexes[9]); - _globals._sequenceIndexes[0] = _scene->_sequences.addBackwardSequence(_globals._spriteIndexes[0], false, 6, 0, 0, 1); + _globals._sequenceIndexes[0] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[0], false, 6, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[0], 14); _scene->_sequences.setRange(_globals._sequenceIndexes[0], -1, -2); _scene->_sequences.setTrigger(_globals._sequenceIndexes[0], 0, 0, 110); @@ -1627,7 +1627,7 @@ void Scene103::actions() { case 70: _vm->_sound->command(24); _scene->deleteSequence(_globals._sequenceIndexes[1]); - _globals._sequenceIndexes[1] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[1], false, 8, 0, 0, 1); + _globals._sequenceIndexes[1] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[1], false, 8, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[1], 14); _scene->_sequences.setRange(_globals._sequenceIndexes[1], -1, -2); _scene->_sequences.setTrigger(_globals._sequenceIndexes[1], 0, 0, 71); @@ -1650,7 +1650,7 @@ void Scene103::actions() { case (0): _game._player._stepEnabled = false; _game._player._visible = false; - _globals._sequenceIndexes[2] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[2], false, 5, 0, 0, 1); + _globals._sequenceIndexes[2] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[2], false, 5, 1); _scene->_sequences.setRange(_globals._sequenceIndexes[2], 1, 4); _scene->_sequences.setSeqPlayer(_globals._sequenceIndexes[2], true); _scene->_sequences.setTrigger(_globals._sequenceIndexes[2], 0, 0, 1); @@ -1668,7 +1668,7 @@ void Scene103::actions() { case 2: _scene->deleteSequence(_globals._sequenceIndexes[2]); - _globals._sequenceIndexes[2] = _scene->_sequences.addBackwardSequence(_globals._spriteIndexes[2], false, 5, 0, 0, 1); + _globals._sequenceIndexes[2] = _scene->_sequences.addReverseSpriteCycle(_globals._spriteIndexes[2], false, 5, 1); _scene->_sequences.setRange(_globals._sequenceIndexes[2], 1, 4); _scene->_sequences.setSeqPlayer(_globals._sequenceIndexes[2], false); _scene->_sequences.setTrigger(_globals._sequenceIndexes[2], 0, 0, 3); @@ -1763,7 +1763,7 @@ void Scene103::actions() { _anim3ActvFl = false; _climbThroughTrapFl = false; _game._player._stepEnabled = false; - _globals._sequenceIndexes[11] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[11], false, 6, 0, 0, 1); + _globals._sequenceIndexes[11] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[11], false, 6, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[11], 5); _scene->_sequences.setRange(_globals._sequenceIndexes[11], -1, -2); _scene->_sequences.setTrigger(_globals._sequenceIndexes[11], 0, 0, 1); @@ -1790,7 +1790,7 @@ void Scene103::actions() { _scene->freeAnimation(5); _anim5ActvFl = false; _game._player._stepEnabled = false; - _globals._sequenceIndexes[10] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[10], false, 6, 0, 0, 1); + _globals._sequenceIndexes[10] = _scene->_sequences.addSpriteCycle(_globals._spriteIndexes[10], false, 6, 1); _scene->_sequences.setDepth(_globals._sequenceIndexes[10], 4); _scene->_sequences.setRange(_globals._sequenceIndexes[10], -1, -2); _scene->_sequences.setTrigger(_globals._sequenceIndexes[10], 0, 0, 1); |