[Scummvm-cvs-logs] SF.net SVN: scummvm:[50361] scummvm/trunk/engines/draci/game.cpp

spalek at users.sourceforge.net spalek at users.sourceforge.net
Sun Jun 27 06:19:55 CEST 2010


Revision: 50361
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50361&view=rev
Author:   spalek
Date:     2010-06-27 04:19:55 +0000 (Sun, 27 Jun 2010)

Log Message:
-----------
Run possible cut-scenes before each location change.

This is the behavior of the original player.  It is not necessary to click on
the hero.

Modified Paths:
--------------
    scummvm/trunk/engines/draci/game.cpp

Modified: scummvm/trunk/engines/draci/game.cpp
===================================================================
--- scummvm/trunk/engines/draci/game.cpp	2010-06-27 01:06:51 UTC (rev 50360)
+++ scummvm/trunk/engines/draci/game.cpp	2010-06-27 04:19:55 UTC (rev 50361)
@@ -174,8 +174,17 @@
 
 		// Call the outer loop doing all the hard job.
 		loop(kOuterLoop, false);
+
+		if (!isReloaded()) {
+			// We are changing location.  Run the hero's LOOK
+			// program to trigger a possible cut-scene.  This is
+			// the behavior of the original game player, whose
+			// intention was to run the cut sequences after the
+			// certain location change.
+			const GameObject *dragon = getObject(kDragonObject);
+			_vm->_script->run(dragon->_program, dragon->_look);
+		}
 	}
-
 }
 
 void Game::init() {


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