[Scummvm-cvs-logs] SF.net SVN: scummvm: [21590] scummvm/trunk/engines/simon

kirben at users.sourceforge.net kirben at users.sourceforge.net
Tue Apr 4 04:08:00 CEST 2006


Revision: 21590
Author:   kirben
Date:     2006-04-04 04:06:48 -0700 (Tue, 04 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21590&view=rev

Log Message:
-----------
Add skipSpeech difference in FF

Modified Paths:
--------------
    scummvm/trunk/engines/simon/cursor.cpp
    scummvm/trunk/engines/simon/simon.cpp
    scummvm/trunk/engines/simon/simon.h
Modified: scummvm/trunk/engines/simon/cursor.cpp
===================================================================
--- scummvm/trunk/engines/simon/cursor.cpp	2006-04-04 10:12:22 UTC (rev 21589)
+++ scummvm/trunk/engines/simon/cursor.cpp	2006-04-04 11:06:48 UTC (rev 21590)
@@ -224,6 +224,8 @@
 };
 
 void SimonEngine::drawMousePointer() {
+	debug(0, "Mouse %d Anim %d Max %d", _mouseCursor, _mouseAnim, _mouseAnimMax);
+
 	if (getGameType() == GType_SIMON2)
 		_system->setMouseCursor(_simon2_cursors[_mouseCursor], 16, 16, 7, 7);
 	else

Modified: scummvm/trunk/engines/simon/simon.cpp
===================================================================
--- scummvm/trunk/engines/simon/simon.cpp	2006-04-04 10:12:22 UTC (rev 21589)
+++ scummvm/trunk/engines/simon/simon.cpp	2006-04-04 11:06:48 UTC (rev 21590)
@@ -332,7 +332,6 @@
 	_fastFadeOutFlag = 0;
 	_unkPalFlag = 0;
 	_exitCutscene = 0;
-	_rightClick = 0;
 	_paletteFlag = 0;
 
 	_soundFileId = 0;
@@ -1604,7 +1603,7 @@
 		_leftButtonDown = 0;
 
 		do {
-			if (_exitCutscene && (_bitArray[0] & 0x200)) {
+			if (_exitCutscene && getBitFlag(9)) {
 				endCutscene();
 				goto out_of_here;
 			}
@@ -1726,8 +1725,8 @@
 			}
 		}
 
-		if (_rightClick) {
-			_rightClick = false;
+		if (_rightButtonDown) {
+			_rightButtonDown = false;
 			setVerb(NULL);
 		}
 	}
@@ -2714,9 +2713,9 @@
 	_vgaWaitFor = a;
 	_syncCount = 0;
 	_exitCutscene = false;
-	_rightClick = false;
+	_rightButtonDown = false;
 	while (_vgaWaitFor != 0) {
-		if (_rightClick && (getGameType() == GType_SIMON2 || getGameType() == GType_FF)) {
+		if (_rightButtonDown && (getGameType() == GType_SIMON2 || getGameType() == GType_FF)) {
 			if (_vgaWaitFor == 200 && !getBitFlag(14)) {
 				skipSpeech();
 				break;
@@ -2747,12 +2746,19 @@
 
 void SimonEngine::skipSpeech() {
 	_sound->stopVoice();
-	if (!(_bitArray[1] & 0x1000)) {
-		_bitArray[0] |= 0x4000;
-		_variableArray[100] = 5;
-		loadSprite(4, 1, 30, 0, 0, 0);
-		o_waitForSync(130);
-		o_kill_sprite_simon2(2, 1);
+	if (getBitFlag(28) == false) {
+		setBitFlag(14, true);
+		if (getGameType() == GType_FF) {
+			_variableArray[103] = 5;
+			loadSprite(4, 2, 13, 0, 0, 0);
+			o_waitForSync(213);
+			o_kill_sprite_simon2(2, 1);
+		} else {
+			_variableArray[100] = 5;
+			loadSprite(4, 1, 30, 0, 0, 0);
+			o_waitForSync(130);
+			o_kill_sprite_simon2(2, 1);
+		}
 	}
 }
 
@@ -4217,7 +4223,7 @@
 				if (getGameType() == GType_FF)
 					_bitArray[5] &= ~0x1000;
 				if (getGameType() == GType_SIMON2 || getGameType() == GType_FF)
-					_rightClick = true;
+					_rightButtonDown++;
 				else
 					_exitCutscene = true;
 				break;

Modified: scummvm/trunk/engines/simon/simon.h
===================================================================
--- scummvm/trunk/engines/simon/simon.h	2006-04-04 10:12:22 UTC (rev 21589)
+++ scummvm/trunk/engines/simon/simon.h	2006-04-04 11:06:48 UTC (rev 21590)
@@ -283,6 +283,7 @@
 	HitArea *_lastHitArea2Ptr;
 	HitArea *_lastHitArea3;
 	byte _leftButtonDown;
+	byte _rightButtonDown;
 	Item *_hitAreaSubjectItem;
 	HitArea *_currentVerbBox, *_hitAreaPtr7;
 	uint _needHitAreaRecalc;
@@ -323,7 +324,6 @@
 	bool _fastFadeOutFlag;
 	bool _unkPalFlag;
 	bool _exitCutscene;
-	bool _rightClick;
 	bool _noRightClick;
 	byte _paletteFlag;
 


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