[Scummvm-cvs-logs] SF.net SVN: scummvm: [22502] scummvm/trunk/engines/kyra/kyra3.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed May 17 13:36:07 CEST 2006


Revision: 22502
Author:   eriktorbjorn
Date:     2006-05-17 13:35:25 -0700 (Wed, 17 May 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22502&view=rev

Log Message:
-----------
Loop the Kyra 3 animation indefinitely.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/kyra3.cpp
Modified: scummvm/trunk/engines/kyra/kyra3.cpp
===================================================================
--- scummvm/trunk/engines/kyra/kyra3.cpp	2006-05-17 20:25:08 UTC (rev 22501)
+++ scummvm/trunk/engines/kyra/kyra3.cpp	2006-05-17 20:35:25 UTC (rev 22502)
@@ -72,20 +72,31 @@
 	
 	logo->setX(0); logo->setY(0);
 	logo->setDrawPage(0);
-	for (int i = 0; i < 64; ++i) {
+
+	for (int i = 0; i < 29; ++i) {
 		uint32 nextRun = _system->getMillis() + 3 * _tickLength;
 		logo->displayFrame(i);
 		_screen->updateScreen();
 		playMenuAudioFile();
 		delayUntil(nextRun);
 	}
+
+	while (1) {
+		for (int i = 29; i < 64; ++i) {
+			uint32 nextRun = _system->getMillis() + 3 * _tickLength;
+			logo->displayFrame(i);
+			_screen->updateScreen();
+			playMenuAudioFile();
+			delayUntil(nextRun);
+		}
 	
-	for (int i = 64; i >= 29; --i) {
-		uint32 nextRun = _system->getMillis() + 3 * _tickLength;
-		logo->displayFrame(i);
-		_screen->updateScreen();
-		playMenuAudioFile();
-		delayUntil(nextRun);
+		for (int i = 64; i >= 29; --i) {
+			uint32 nextRun = _system->getMillis() + 3 * _tickLength;
+			logo->displayFrame(i);
+			_screen->updateScreen();
+			playMenuAudioFile();
+			delayUntil(nextRun);
+		}
 	}
 	
 	delete [] pal;


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