Skip to content

Commit

Permalink
Merged revision(s) 21769 from trunk/OpenMPT:
Browse files Browse the repository at this point in the history
[Imp] IT: Like our fix for old (Open)MPT versions, clamp the Vxx parameter to V80 for files made with old Schism Tracker versions (see schismtracker/schismtracker#531).
........


git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@21770 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
sagamusix committed Sep 30, 2024
1 parent 7bc90bc commit 45e5a20
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions soundlib/Load_it.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,10 @@ bool CSoundFile::ReadIT(FileReader &file, ModLoadingFlags loadFlags)
// Example: ckbounce.it
lastValue[ch].command = m.command;
lastValue[ch].param = m.param;
// Fix handling of commands V81-VFF in ITs made with old Schism Tracker versions
// (fixed in https://github.com/schismtracker/schismtracker/commit/ab5517d4730d4c717f7ebffb401445679bd30888 - one of the last versions to identify as v0.50)
if(m.command == CMD_GLOBALVOLUME && m.param > 0x80 && fileHeader.cwtv >= 0x1000 && fileHeader.cwtv <= 0x1050)
m.param = 0x80;
}
}
}
Expand Down

0 comments on commit 45e5a20

Please sign in to comment.