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

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Mon Mar 6 07:11:08 CET 2006


Revision: 21109
Author:   eriktorbjorn
Date:     2006-03-06 07:10:48 -0800 (Mon, 06 Mar 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm?rev=21109&view=rev

Log Message:
-----------
Cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/sound_adlib.cpp
Modified: scummvm/trunk/engines/kyra/sound_adlib.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_adlib.cpp	2006-03-05 23:50:24 UTC (rev 21108)
+++ scummvm/trunk/engines/kyra/sound_adlib.cpp	2006-03-06 15:10:48 UTC (rev 21109)
@@ -711,17 +711,10 @@
 		state.unk5 = unk1 + (getRandomNr() & state.unk11 & 0xFF);
 		return;
 	}
-	uint8 value = unk1;
 	if (state.unk12) {
-		uint8 value2 = 0;
-		uint8 add = value >> 3;
-		int loops = state.unk12;
-		while (loops--) {
-			value2 += add;
-		}
-		state.unk7 = value2;
+		state.unk7 = (unk1 >> 3) * state.unk12;
 	}
-	state.unk5 = value;
+	state.unk5 = unk1;
 }
 
 void AdlibDriver::updateAndOutput1(uint8 unk1, OutputState &state) {







More information about the Scummvm-git-logs mailing list