Skip to content

Commit

Permalink
Merged revision(s) 21766 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Mod] Mod Conversion: When converting to IT, clamp maximum tempo to 255 BPM.
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@21767 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Sep 28, 2024
1 parent 025f794 commit 26b1383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mptrack/ModConvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ bool CModDoc::ChangeModType(MODTYPE nNewType)

ChangeFileExtension(nNewType);

// Check mod specifications
Limit(m_SndFile.m_nDefaultTempo, specs.GetTempoMin(), specs.GetTempoMax());
// Special case: CModSpecifications for IT allow tempos up to 512 so that legacy modules play correctly.
Limit(m_SndFile.m_nDefaultTempo, specs.GetTempoMin(), nNewType == MOD_TYPE_IT ? TEMPO(255, 0) : specs.GetTempoMax()));
Limit(m_SndFile.m_nDefaultSpeed, specs.speedMin, specs.speedMax);

for(INSTRUMENTINDEX i = 1; i <= m_SndFile.GetNumInstruments(); i++) if(m_SndFile.Instruments[i] != nullptr)
Expand Down

0 comments on commit 26b1383

Please sign in to comment.