[Scummvm-cvs-logs] SF.net SVN: scummvm: [28284] scummvm/trunk/engines/drascula/drascula.cpp

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sun Jul 29 09:12:24 CEST 2007


Revision: 28284
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28284&view=rev
Author:   aquadran
Date:     2007-07-29 00:12:24 -0700 (Sun, 29 Jul 2007)

Log Message:
-----------
more corrections

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/drascula.cpp

Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp	2007-07-29 06:37:45 UTC (rev 28283)
+++ scummvm/trunk/engines/drascula/drascula.cpp	2007-07-29 07:12:24 UTC (rev 28284)
@@ -2006,7 +2006,7 @@
 }
 
 void DrasculaEngine::delay(int ms) {
-	_system->delayMillis(ms);
+	_system->delayMillis(ms * 2); // originaly was 1
 }
 
 void DrasculaEngine::confirma_go() {
@@ -2316,15 +2316,7 @@
 }
 
 void DrasculaEngine::pausa(int cuanto) {
-	int diferencia, conta_antes;
-
-	conta_antes = vez();
-
-	for (;;) {
-		diferencia = vez() - conta_antes;
-		if (diferencia >= 2 * cuanto)
-			break;
-	}
+	_system->delayMillis(cuanto * 25); // was originaly 2
 }
 
 void DrasculaEngine::habla_dr_grande(const char *dicho, const char *filename) {
@@ -2364,7 +2356,7 @@
 	DIBUJA_FONDO(x_habla[cara], 1, 171, 68, 45, 48, dir_dibujo2, dir_zona_pantalla);
 	l++;
 	if (l == 7)
-		l =0;
+		l = 0;
 
 	if (con_voces == 0)
 		centra_texto(dicho, 191, 69);
@@ -3697,7 +3689,8 @@
 	delay(10);
 	// TODO GAME_Poll(gamev, 10);
 	//return(!SDEV_ChannelFree(gamev->EffectDev, 0));
-	return 1;
+	delay(1000); // workround too much fast played sound
+	return 0;
 }
 
 void DrasculaEngine::OpenSSN(const char *Name, int Pause) {


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