diff options
author | Strangerke | 2014-03-23 11:34:12 +0100 |
---|---|---|
committer | Strangerke | 2014-03-23 11:34:12 +0100 |
commit | 8dd9dab76c2290a33289ffcc1e1a5582c9550bb4 (patch) | |
tree | ffee187232da3f76eb1b459091e381ecc74dc102 /engines/mads/sequence.cpp | |
parent | 0b351f79d8ad874ce07fed54eb745a277da28edc (diff) | |
download | scummvm-rg350-8dd9dab76c2290a33289ffcc1e1a5582c9550bb4.tar.gz scummvm-rg350-8dd9dab76c2290a33289ffcc1e1a5582c9550bb4.tar.bz2 scummvm-rg350-8dd9dab76c2290a33289ffcc1e1a5582c9550bb4.zip |
MADS: Implement Sequence::setScale and GameNebular::sub71312.
Diffstat (limited to 'engines/mads/sequence.cpp')
-rw-r--r-- | engines/mads/sequence.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp index 453d90b468..53ed02a566 100644 --- a/engines/mads/sequence.cpp +++ b/engines/mads/sequence.cpp @@ -476,14 +476,18 @@ int SequenceList::startReverseCycle(int srcSpriteIndex, bool flipped, int numTic void SequenceList::getTimeout(int spriteIdx, int arg2) { int timeout; if (spriteIdx >= 0) - timeout = _vm->_game->_scene._sequences._entries[spriteIdx]._timeout; + timeout = _entries[spriteIdx]._timeout; else timeout = _vm->_game->_player._priorTimer + _vm->_game->_player._ticksAmount; if (arg2 >= 0) - _vm->_game->_scene._sequences._entries[arg2]._timeout = timeout; + _entries[arg2]._timeout = timeout; else _vm->_game->_player._priorTimer = timeout - _vm->_game->_player._ticksAmount; } + +void SequenceList::setScale(int spriteIdx, int scale) { + _entries[spriteIdx]._scale = scale; +} } // End of namespace |