[Scummvm-cvs-logs] CVS: scummvm/backends/midi adlib.cpp,1.26,1.27

Max Horn fingolfin at users.sourceforge.net
Tue May 27 16:19:01 CEST 2003


Update of /cvsroot/scummvm/scummvm/backends/midi
In directory sc8-pr-cvs1:/tmp/cvs-serv25589

Modified Files:
	adlib.cpp 
Log Message:
cleanup

Index: adlib.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/midi/adlib.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- adlib.cpp	23 May 2003 04:19:47 -0000	1.26
+++ adlib.cpp	27 May 2003 23:18:03 -0000	1.27
@@ -997,14 +997,16 @@
 			step = _next_tick;
 		YM3812UpdateOne(0, data, step);
 
-		if (!(_next_tick -= step)) {
+		_next_tick -= step;
+		if (!_next_tick) {
 			if (_timer_proc)
 				(*_timer_proc) (_timer_param);
 			on_timer();
 			reset_tick();
 		}
 		data += step;
-	} while (len -= step);
+		len -= step;
+	} while (len);
 }
 
 void MidiDriver_ADLIB::reset_tick() {





More information about the Scummvm-git-logs mailing list