From: <sv...@op...> - 2024-11-06 21:15:19
|
Author: sagamusix Date: Wed Nov 6 22:15:11 2024 New Revision: 22104 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22104 Log: [Fix] r22093 broke XM with linear slides period calculation. Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp ============================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp Tue Nov 5 18:46:08 2024 (r22103) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp Wed Nov 6 22:15:11 2024 (r22104) @@ -6665,7 +6665,7 @@ if(m_SongFlags[SONG_LINEARSLIDES]) { - int l = ((NOTE_MAX - note) << 6) - (nFineTune / 2); + int l = ((120 - note) << 6) - (nFineTune / 2); if (l < 1) l = 1; return static_cast<uint32>(l); } else |