diff options
author | Johannes Schickel | 2011-10-02 02:17:59 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-10-02 02:17:59 +0200 |
commit | 6da0549133012b9e01741b7c81a2db234718260e (patch) | |
tree | e7aecc9f848ab93194e94e9a4d16e1225497c8a1 | |
parent | a3a40c4a6f07618a3d4b958e0b54feb03a1ddb95 (diff) | |
download | scummvm-rg350-6da0549133012b9e01741b7c81a2db234718260e.tar.gz scummvm-rg350-6da0549133012b9e01741b7c81a2db234718260e.tar.bz2 scummvm-rg350-6da0549133012b9e01741b7c81a2db234718260e.zip |
KYRA: Fix minor bug in AdLibDriver::primaryEffect1.
-rw-r--r-- | engines/kyra/sound_adlib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp index b71c2f76db..8976eba99c 100644 --- a/engines/kyra/sound_adlib.cpp +++ b/engines/kyra/sound_adlib.cpp @@ -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; |