Author: sagamusix
Date: Thu Jun 27 18:44:36 2024
New Revision: 21087
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21087
Log:
[Fix] FTM: Volume slide should not be reset by new notes.
Modified:
trunk/OpenMPT/soundlib/Snd_fx.cpp
Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp
==============================================================================
--- trunk/OpenMPT/soundlib/Snd_fx.cpp Thu Jun 27 18:37:31 2024 (r21086)
+++ trunk/OpenMPT/soundlib/Snd_fx.cpp Thu Jun 27 18:44:36 2024 (r21087)
@@ -2178,8 +2178,10 @@
chn.paulaState.Reset();
}
const bool wasGlobalSlideRunning = chn.autoSlide.IsActive(AutoSlideCommand::GlobalVolumeSlide);
+ const bool wasChannelVolSlideRunning = chn.autoSlide.IsActive(AutoSlideCommand::VolumeDownWithDuration);
chn.autoSlide.Reset();
chn.autoSlide.SetActive(AutoSlideCommand::GlobalVolumeSlide, wasGlobalSlideRunning);
+ chn.autoSlide.SetActive(AutoSlideCommand::VolumeDownWithDuration, wasChannelVolSlideRunning);
}
|