From aee6c3f6977dcef8ea0eaa8e363927ab0f52a21c Mon Sep 17 00:00:00 2001 From: Johannes Schultz Date: Sun, 24 Nov 2024 12:59:31 +0000 Subject: [PATCH] Merged revision(s) 22280 from trunk/OpenMPT: [Fix] MED: Do not allow sample swapping with portamento, and don't resume playing a stopped note with portamento. Fixes Homeward_Trek.med by Soundburst (https://www.un4seen.com/forum/?topic=15448.msg144148#msg144148). ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.30@22287 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- soundlib/Load_med.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soundlib/Load_med.cpp b/soundlib/Load_med.cpp index 1bdbd0d7b3b..bc07e30238e 100644 --- a/soundlib/Load_med.cpp +++ b/soundlib/Load_med.cpp @@ -1193,6 +1193,8 @@ bool CSoundFile::ReadMED(FileReader &file, ModLoadingFlags loadFlags) // For MED, this affects both volume and pitch slides m_SongFlags.set(SONG_FASTVOLSLIDES, !(songHeader.flags & MMDSong::FLAG_STSLIDE)); + m_playBehaviour.set(kST3PortaSampleChange); + m_playBehaviour.set(kFT2PortaNoNote); if(expData.songNameOffset && file.Seek(expData.songNameOffset)) {