Author: sagamusix
Date: Mon May 27 21:36:15 2024
New Revision: 20864
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20864
Log:
[Var] Document test case.
Modified:
trunk/OpenMPT/soundlib/Snd_fx.cpp
Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp
==============================================================================
--- trunk/OpenMPT/soundlib/Snd_fx.cpp Mon May 27 21:34:41 2024 (r20863)
+++ trunk/OpenMPT/soundlib/Snd_fx.cpp Mon May 27 21:36:15 2024 (r20864)
@@ -5683,6 +5683,8 @@
param /= 2u;
}
+ // IT compatibility: Offset with instrument number but note note recalls previous note and executes offset.
+ // Test case: OffsetWithInstr.it
const auto note = (m_playBehaviour[kITOffsetWithInstrNumber] && chn.rowCommand.instr) ? chn.nNewNote : chn.rowCommand.note;
if(ModCommand::IsNote(note) || m_playBehaviour[kApplyOffsetWithoutNote])
{
|