From: <sv...@op...> - 2024-10-31 20:20:58
|
Author: sagamusix Date: Thu Oct 31 21:20:52 2024 New Revision: 22042 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22042 Log: [Fix] And fix another operator precedence. Modified: trunk/OpenMPT/soundlib/Load_fc.cpp Modified: trunk/OpenMPT/soundlib/Load_fc.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Load_fc.cpp Thu Oct 31 21:19:56 2024 (r22041) +++ trunk/OpenMPT/soundlib/Load_fc.cpp Thu Oct 31 21:20:52 2024 (r22042) @@ -373,7 +373,7 @@ prevNote[chn] = {p[0], static_cast<uint8>(m->instr)}; } else if(row == 0 && ord > 0 && orderData[ord - 1].channels[chn].noteTranspose != chnInfo.noteTranspose && prevNote[chn][0] > 0) { - m->note = NOTE_MIN + (chnInfo.noteTranspose + prevNote[chn][0]) & 0x7F; + m->note = NOTE_MIN + ((chnInfo.noteTranspose + prevNote[chn][0]) & 0x7F); m->instr = prevNote[chn][1]; m->SetVolumeCommand(VOLCMD_TONEPORTAMENTO, 9); } |