[Scummvm-cvs-logs] SF.net SVN: scummvm: [24039] scummvm/trunk/engines/agos/vga.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Sat Sep 30 14:28:57 CEST 2006


Revision: 24039
          http://svn.sourceforge.net/scummvm/?rev=24039&view=rev
Author:   kirben
Date:     2006-09-30 05:28:52 -0700 (Sat, 30 Sep 2006)

Log Message:
-----------
Add more small difference in PP code

Modified Paths:
--------------
    scummvm/trunk/engines/agos/vga.cpp

Modified: scummvm/trunk/engines/agos/vga.cpp
===================================================================
--- scummvm/trunk/engines/agos/vga.cpp	2006-09-30 11:55:50 UTC (rev 24038)
+++ scummvm/trunk/engines/agos/vga.cpp	2006-09-30 12:28:52 UTC (rev 24039)
@@ -1803,7 +1803,7 @@
 
 	vcWriteVar(254, 0);
 
-	if (getGameType() == GType_FF)
+	if (getGameType() == GType_FF || getGameType() == GType_PP)
 		setBitFlag(42, true);
 
 	_lockWord &= ~8;
@@ -2662,9 +2662,11 @@
 	_variableArrayPtr[16] = posy;
 	vsp->y = posy;
 
-	setBitFlag(85, false);
-	if (getBitFlag(74)) {
-		centreScroll();
+	if (getGameType() == GType_FF) {
+		setBitFlag(85, false);
+		if (getBitFlag(74)) {
+			centreScroll();
+		}
 	}
 }
 
@@ -2706,7 +2708,7 @@
 
 	uint16 var = vcReadNextWord();
 
-	if (getBitFlag(82)) {
+	if (getGameType() == GType_FF && getBitFlag(82)) {
 		val = _pathValues1[_GPVCount1++];
 	} else {
 		val = _pathValues[_GPVCount++];
@@ -2729,9 +2731,12 @@
 
 // Scrolling functions for Feeble Files
 void AGOSEngine::checkScrollX(int16 x, int16 xpos) {
-	if (_scrollXMax == 0 || getBitFlag(80) || getBitFlag(82) || x == 0)
+	if (_scrollXMax == 0 || x == 0)
 		return;
 
+	if ((getGameType() == GType_FF) && (getBitFlag(80) || getBitFlag(82)))
+		return;
+
 	int16 tmp;
 	if (x > 0) {
 		if (_scrollCount != 0) {
@@ -2768,9 +2773,12 @@
 }
 
 void AGOSEngine::checkScrollY(int16 y, int16 ypos) {
-	if (_scrollYMax == 0 || getBitFlag(80))
+	if (_scrollYMax == 0)
 		return;
 
+	if (getGameType() == GType_FF && getBitFlag(80))
+		return;
+
 	int16 tmp;
 	if (y >= 0) {
 		if (_scrollCount != 0) {


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