[Scummvm-cvs-logs] CVS: scummvm/scumm player_v2.cpp,2.48,2.49

Jochen Hoenicke hoenicke at users.sourceforge.net
Fri Mar 5 06:58:00 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10735

Modified Files:
	player_v2.cpp 
Log Message:
Clear all channel variables in clear_channel

Index: player_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/player_v2.cpp,v
retrieving revision 2.48
retrieving revision 2.49
diff -u -d -r2.48 -r2.49
--- player_v2.cpp	28 Feb 2004 12:58:10 -0000	2.48
+++ player_v2.cpp	5 Mar 2004 14:35:16 -0000	2.49
@@ -543,24 +543,7 @@
 
 void Player_V2::clear_channel(int i) {
 	ChannelInfo *channel = &_channels[i];
-	channel->d.time_left  = 0;
-	channel->d.next_cmd   = 0;
-	channel->d.base_freq  = 0;
-	channel->d.freq_delta = 0;
-	channel->d.freq = 0;
-	channel->d.volume = 0;
-	channel->d.volume_delta = 0;
-	channel->d.inter_note_pause = 0;
-	channel->d.transpose = 0;
-	channel->d.hull_curve = 0;
-	channel->d.hull_offset = 0;
-	channel->d.hull_counter = 0;
-	channel->d.freqmod_table = 0;
-	channel->d.freqmod_offset = 0;
-	channel->d.freqmod_incr = 0;
-	channel->d.freqmod_multiplier = 0;
-	channel->d.freqmod_modulo = 0;
-	channel->d.music_timer = 0;
+	memset(channel, 0, sizeof(ChannelInfo));
 }
 
 int Player_V2::getMusicTimer() const {





More information about the Scummvm-git-logs mailing list