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

aquadran at users.sourceforge.net aquadran at users.sourceforge.net
Sat Jul 28 23:15:35 CEST 2007


Revision: 28276
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28276&view=rev
Author:   aquadran
Date:     2007-07-28 14:15:35 -0700 (Sat, 28 Jul 2007)

Log Message:
-----------
formating and correction

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

Modified: scummvm/trunk/engines/drascula/drascula.cpp
===================================================================
--- scummvm/trunk/engines/drascula/drascula.cpp	2007-07-28 20:24:22 UTC (rev 28275)
+++ scummvm/trunk/engines/drascula/drascula.cpp	2007-07-28 21:15:35 UTC (rev 28276)
@@ -942,7 +942,7 @@
 		playmusic(2);
 		pausa(5);
 		fliplay("intro.bin", 12);
-		term_int=1;
+		term_int = 1;
 	}
 	borra_pantalla();
 	lee_dibujos("96.alg");
@@ -1162,7 +1162,7 @@
 	int c = 171;
 	if (menu_scr == 1)
 		c = 0;
-	if (lleva_objeto==1)
+	if (lleva_objeto == 1)
 		suma_objeto(objeto_que_lleva);
 		DIBUJA_FONDO(0, c, 0, 0, ANCHOBJ,ALTOBJ, dir_hare_fondo, dir_dibujo3);
 
@@ -1338,7 +1338,7 @@
 		alto_hare = (ALTO_PERSONAJE * factor_red[hare_y]) / 100;
 		ancho_hare = (ANCHO_PERSONAJE * factor_red[hare_y]) / 100;
 	}
-	hare_se_mueve=0;
+	hare_se_mueve = 0;
 
 	actualiza_datos();
 
@@ -1356,8 +1356,8 @@
 }
 
 void DrasculaEngine::lleva_al_hare(int punto_x, int punto_y) {
-	sitio_x=punto_x;
-	sitio_y=punto_y;
+	sitio_x = punto_x;
+	sitio_y = punto_y;
 	empieza_andar();
 
 	for(;;) {
@@ -2174,9 +2174,9 @@
 
 	strcpy(m1, mensaje);
 	if (x_texto < 60)
-		x_texto=60;
+		x_texto = 60;
 	if (x_texto > 255)
-		x_texto=255;
+		x_texto = 255;
 
 	x_texto1 = x_texto;
 
@@ -2284,7 +2284,7 @@
 		key = getscan();
 		if (key == 0x01)
 			term_int = 1;
-		if (key !=0)
+		if (key != 0)
 			break;
 	}
 	free(AuxBuffLast);
@@ -2319,7 +2319,15 @@
 }
 
 void DrasculaEngine::pausa(int cuanto) {
-	_system->delayMillis(cuanto);
+	int diferencia, conta_antes;
+
+	conta_antes = vez();
+
+	for (;;) {
+		diferencia = vez() - conta_antes;
+		if (diferencia >= 2 * cuanto)
+			break;
+	}
 }
 
 void DrasculaEngine::habla_dr_grande(const char *dicho, const char *filename) {
@@ -3913,7 +3921,7 @@
 }
 
 float DrasculaEngine::vez() {
-	return _system->getMillis() / 1000;
+	return _system->getMillis();
 }
 
 void DrasculaEngine::reduce_hare_chico(int x1,int y1, int x2,int y2, int ancho,int alto, int factor, byte *dir_inicio, byte *dir_fin) {


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