[Scummvm-cvs-logs] SF.net SVN: scummvm: [28725] scummvm/trunk/engines/saga

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sat Aug 25 18:02:48 CEST 2007


Revision: 28725
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28725&view=rev
Author:   thebluegr
Date:     2007-08-25 09:02:48 -0700 (Sat, 25 Aug 2007)

Log Message:
-----------
Stop showing actors before a scene's background is shown. Removed a relevant hack

Modified Paths:
--------------
    scummvm/trunk/engines/saga/scene.cpp
    scummvm/trunk/engines/saga/sfuncs.cpp

Modified: scummvm/trunk/engines/saga/scene.cpp
===================================================================
--- scummvm/trunk/engines/saga/scene.cpp	2007-08-25 16:01:42 UTC (rev 28724)
+++ scummvm/trunk/engines/saga/scene.cpp	2007-08-25 16:02:48 UTC (rev 28725)
@@ -710,6 +710,9 @@
 	}
 
 	_sceneLoaded = true;
+	// Scene is loaded, but don't show actors till the scene's background is drawn
+	// via kEventDisplay later on
+	_vm->_actor->showActors(false);
 
 	q_event = NULL;
 

Modified: scummvm/trunk/engines/saga/sfuncs.cpp
===================================================================
--- scummvm/trunk/engines/saga/sfuncs.cpp	2007-08-25 16:01:42 UTC (rev 28724)
+++ scummvm/trunk/engines/saga/sfuncs.cpp	2007-08-25 16:02:48 UTC (rev 28725)
@@ -568,25 +568,9 @@
 		return;
 	}
 
-	if (_vm->getGameType() == GType_IHNM) {
-		// WORKAROUND for the briefly appearing actors at the beginning of each chapter
-		// This will stop the actors being drawn in those specific scenes until the scene background has been drawn
-		if ((_vm->_scene->currentChapterNumber() == 1 && _vm->_scene->currentSceneNumber() == 6) ||
-			(_vm->_scene->currentChapterNumber() == 2 && _vm->_scene->currentSceneNumber() == 31) ||
-			(_vm->_scene->currentChapterNumber() == 3 && _vm->_scene->currentSceneNumber() == 58) ||
-			(_vm->_scene->currentChapterNumber() == 4 && _vm->_scene->currentSceneNumber() == 68) ||
-			(_vm->_scene->currentChapterNumber() == 5 && _vm->_scene->currentSceneNumber() == 91) ||
-			(_vm->_scene->currentChapterNumber() == 7 && _vm->_scene->currentSceneNumber() == 145))
-				_vm->_actor->showActors(false);		// Stop showing actors before the background is drawn
-
-		// Since it doesn't look like the IHNM scripts remove the
-		// cutaway after the intro, this is probably the best place to do it
-		_vm->_anim->clearCutaway();
-	}
-
 	// It is possible to leave scene when converse panel is on,
 	// particulalrly it may happen at Moneychanger tent. This
-	// prevent this from happening.
+	// prevents this from happening.
 	if (_vm->_interface->getMode() == kPanelConverse) {
 		_vm->_interface->setMode(kPanelMain);
 	}
@@ -610,8 +594,13 @@
 	_currentObject[0] = _currentObject[1] = ID_NOTHING;
 	showVerb();	// calls setStatusText("")
 
-	if (_vm->getGameType() == GType_IHNM)
+	if (_vm->getGameType() == GType_IHNM) {
+		// Since it doesn't look like the IHNM scripts remove the
+		// cutaway after the intro, this is probably the best place to do it
+		if (_vm->_scene->currentChapterNumber() == 8)
+			_vm->_anim->clearCutaway();
 		_vm->_gfx->setCursor(kCursorNormal);
+	}
 }
 
 // Script function #17 (0x11)


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