[Scummvm-cvs-logs] SF.net SVN: scummvm:[42583] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sat Jul 18 05:12:12 CEST 2009


Revision: 42583
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42583&view=rev
Author:   dkasak13
Date:     2009-07-18 03:12:12 +0000 (Sat, 18 Jul 2009)

Log Message:
-----------
Made the engine stop the dragon animation when the room changes.

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/game.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/game.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-07-18 03:05:20 UTC (rev 42582)
+++ scummvm/branches/gsoc2009-draci/engines/draci/game.cpp	2009-07-18 03:12:12 UTC (rev 42583)
@@ -235,7 +235,6 @@
 	debugC(4, kDraciLogicDebugLevel, "EscRoom: %d", _currentRoom._escRoom);
 	debugC(4, kDraciLogicDebugLevel, "Gates: %d", _currentRoom._numGates);
 
-
 	// Read in the gates' numbers
 	Common::Array<int> gates;
 
@@ -447,6 +446,12 @@
 
 	int oldRoomNum = _currentRoom._roomNum;
 
+	// TODO: Make objects capable of stopping their own animations
+	GameObject *dragon = getObject(kDragonObject);
+	for (uint i = 0; i < dragon->_anims.size(); ++i) {
+		_vm->_anims->stop(dragon->_anims[i]);
+	}
+
 	for (uint i = 0; i < _info._numObjects; ++i) {
 		GameObject *obj = &_objects[i];
 		


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