KYRA: Fix minor bug in AdLibDriver::primaryEffect1.

This commit is contained in:
Johannes Schickel 2011-10-02 02:17:59 +02:00
parent a3a40c4a6f
commit 6da0549133

View File

@ -1118,11 +1118,11 @@ void AdLibDriver::primaryEffect1(Channel &channel) {
return;
// Initialize unk1 to the current frequency
uint16 unk1 = ((channel.regBx & 3) << 8) | channel.regAx;
int16 unk1 = ((channel.regBx & 3) << 8) | channel.regAx;
// This is presumably to shift the "note on" bit so far to the left
// that it won't be affected by any of the calculations below.
uint16 unk2 = ((channel.regBx & 0x20) << 8) | (channel.regBx & 0x1C);
int16 unk2 = ((channel.regBx & 0x20) << 8) | (channel.regBx & 0x1C);
int16 unk3 = (int16)channel.unk30;