[Scummvm-cvs-logs] scummvm master -> 475d14ac939d7192cbc0fa763ca2dfe15a2aa71b
dreammaster
dreammaster at scummvm.org
Wed Jun 4 01:48:54 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
475d14ac93 MADS: Fix for reverse sprite cycles
Commit: 475d14ac939d7192cbc0fa763ca2dfe15a2aa71b
https://github.com/scummvm/scummvm/commit/475d14ac939d7192cbc0fa763ca2dfe15a2aa71b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-06-03T19:48:16-04:00
Commit Message:
MADS: Fix for reverse sprite cycles
Changed paths:
engines/mads/sequence.cpp
diff --git a/engines/mads/sequence.cpp b/engines/mads/sequence.cpp
index 34606bb..07b1451 100644
--- a/engines/mads/sequence.cpp
+++ b/engines/mads/sequence.cpp
@@ -473,8 +473,8 @@ int SequenceList::startReverseCycle(int srcSpriteIndex, bool flipped, int numTic
int depth = _vm->_game->_scene._depthSurface.getDepth(Common::Point(
frame->_offset.x + frame->w / 2, frame->_offset.y + frame->h / 2));
- return add(srcSpriteIndex, flipped, 1, triggerCountdown, timeoutTicks, extraTicks,
- numTicks, 0, 0, true, 100, depth - 1, 1, ANIMTYPE_REVERSIBLE, 0, 0);
+ return add(srcSpriteIndex, flipped, sprites->getCount(), triggerCountdown, timeoutTicks,
+ extraTicks, numTicks, 0, 0, true, 100, depth - 1, -1, ANIMTYPE_REVERSIBLE, 0, 0);
}
void SequenceList::updateTimeout(int spriteIdx, int seqIndex) {
More information about the Scummvm-git-logs
mailing list