[Scummvm-cvs-logs] SF.net SVN: scummvm:[52158] scummvm/trunk/engines/hugo/schedule.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Tue Aug 17 16:21:04 CEST 2010
Revision: 52158
http://scummvm.svn.sourceforge.net/scummvm/?rev=52158&view=rev
Author: strangerke
Date: 2010-08-17 14:21:04 +0000 (Tue, 17 Aug 2010)
Log Message:
-----------
Hugo - Fix the sprite modification of the hero (quickest test : H1, entering the machine)
Modified Paths:
--------------
scummvm/trunk/engines/hugo/schedule.cpp
Modified: scummvm/trunk/engines/hugo/schedule.cpp
===================================================================
--- scummvm/trunk/engines/hugo/schedule.cpp 2010-08-17 13:51:36 UTC (rev 52157)
+++ scummvm/trunk/engines/hugo/schedule.cpp 2010-08-17 14:21:04 UTC (rev 52158)
@@ -659,13 +659,14 @@
// the assumption for now that the first obj is always the HERO) to the object
// number of the swapped image
seqList_t tmpSeqList[MAX_SEQUENCES];
+ int seqListSize = sizeof(seqList_t) * MAX_SEQUENCES;
debugC(1, kDebugSchedule, "swapImages(%d, %d)", objNumb1, objNumb2);
_vm.file().saveSeq(&_vm._objects[objNumb1]);
- memcpy(tmpSeqList, _vm._objects[objNumb1].seqList, sizeof(seqList_t));
- memcpy(_vm._objects[objNumb1].seqList, _vm._objects[objNumb2].seqList, sizeof(seqList_t));
- memcpy(_vm._objects[objNumb2].seqList, tmpSeqList, sizeof(seqList_t));
+ memcpy(tmpSeqList, _vm._objects[objNumb1].seqList, seqListSize);
+ memcpy(_vm._objects[objNumb1].seqList, _vm._objects[objNumb2].seqList, seqListSize);
+ memcpy(_vm._objects[objNumb2].seqList, tmpSeqList, seqListSize);
_vm.file().restoreSeq(&_vm._objects[objNumb1]);
_vm._objects[objNumb2].currImagePtr = _vm._objects[objNumb2].seqList[0].seqPtr;
_vm._heroImage = (_vm._heroImage == HERO) ? objNumb2 : HERO;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list