[Scummvm-cvs-logs] SF.net SVN: scummvm:[50933] scummvm/trunk/engines/sci/engine/kmovement.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Fri Jul 16 11:51:57 CEST 2010


Revision: 50933
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50933&view=rev
Author:   m_kiewitz
Date:     2010-07-16 09:51:57 +0000 (Fri, 16 Jul 2010)

Log Message:
-----------
SCI: only use xLast/yLast in kDoBresen for sci1middle+ only. qfg1 ega has those selector names, but doesn't use them inside mover objects

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-16 08:03:26 UTC (rev 50932)
+++ scummvm/trunk/engines/sci/engine/kmovement.cpp	2010-07-16 09:51:57 UTC (rev 50933)
@@ -267,10 +267,12 @@
 	bdelta = (int16)readSelectorValue(segMan, mover, SELECTOR(b_incr));
 	axis = (int16)readSelectorValue(segMan, mover, SELECTOR(b_xAxis));
 
-	if (SELECTOR(xLast) != -1) {
-		// Introduced SCI1MIDDLE (it seems) - save last position into mover
-		writeSelectorValue(segMan, mover, SELECTOR(xLast), x);
-		writeSelectorValue(segMan, mover, SELECTOR(yLast), y);
+	if ((getSciVersion() >= SCI_VERSION_1_MIDDLE)) {
+		if (SELECTOR(xLast) != -1) {
+			// Introduced SCI1MIDDLE (it seems) - 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