[Scummvm-cvs-logs] SF.net SVN: scummvm:[51035] scummvm/trunk/engines/sci/engine/kmovement.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Mon Jul 19 19:27:57 CEST 2010
Revision: 51035
http://scummvm.svn.sourceforge.net/scummvm/?rev=51035&view=rev
Author: m_kiewitz
Date: 2010-07-19 17:27:56 +0000 (Mon, 19 Jul 2010)
Log Message:
-----------
SCI: kDoBresen - check xLast/yLast selectors
fixed mixed-up fairy tales demo
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kmovement.cpp
Modified: scummvm/trunk/engines/sci/engine/kmovement.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kmovement.cpp 2010-07-19 16:47:31 UTC (rev 51034)
+++ scummvm/trunk/engines/sci/engine/kmovement.cpp 2010-07-19 17:27:56 UTC (rev 51035)
@@ -268,9 +268,12 @@
axis = (int16)readSelectorValue(segMan, mover, SELECTOR(b_xAxis));
if ((getSciVersion() >= SCI_VERSION_1_LATE)) {
- // save last position into mover
- writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
- writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
+ // Mixed-Up Fairy Tales has no xLast/yLast selectors
+ if (SELECTOR(xLast) != -1) {
+ // save last position into mover
+ writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
+ writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
+ }
}
//printf("movecnt %d, move speed %d\n", movcnt, max_movcnt);
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