From: <sag...@us...> - 2011-03-19 14:02:27
|
Revision: 819 http://modplug.svn.sourceforge.net/modplug/?rev=819&view=rev Author: saga-games Date: 2011-03-19 14:02:21 +0000 (Sat, 19 Mar 2011) Log Message: ----------- [Imp] IT Loader: Autovibrato sweep is now fixed when loading IT files made with old versions of (Open)MPT. [Imp] IT Loader: Since long patterns can also be created in other trackers (e.g. Chibi), long patterns are not used to identify files made with MPT anymore. [Mod] OpenMPT: Version is now 1.19.00.29 Modified Paths: -------------- trunk/OpenMPT/mptrack/version.h trunk/OpenMPT/soundlib/Load_it.cpp Modified: trunk/OpenMPT/mptrack/version.h =================================================================== --- trunk/OpenMPT/mptrack/version.h 2011-03-19 14:00:23 UTC (rev 818) +++ trunk/OpenMPT/mptrack/version.h 2011-03-19 14:02:21 UTC (rev 819) @@ -15,7 +15,7 @@ #define VER_MAJORMAJOR 1 #define VER_MAJOR 19 #define VER_MINOR 00 -#define VER_MINORMINOR 28 +#define VER_MINORMINOR 29 //Creates version number from version parts that appears in version string. //For example MAKE_VERSION_NUMERIC(1,17,02,28) gives version number of Modified: trunk/OpenMPT/soundlib/Load_it.cpp =================================================================== --- trunk/OpenMPT/soundlib/Load_it.cpp 2011-03-19 14:00:23 UTC (rev 818) +++ trunk/OpenMPT/soundlib/Load_it.cpp 2011-03-19 14:02:21 UTC (rev 819) @@ -853,7 +853,7 @@ if(rows <= ModSpecs::itEx.patternRowsMax && rows > ModSpecs::it.patternRowsMax) { - interpretModPlugMade = true; + //interpretModPlugMade = true; // Chibi also does this. hasModPlugExtensions = true; } @@ -970,6 +970,10 @@ pSmp->nVibRate = pis->vis; pSmp->nVibDepth = pis->vid & 0x7F; pSmp->nVibSweep = pis->vir; //(pis->vir + 3) / 4; + if(pSmp->nVibSweep == 0 && (pSmp->nVibDepth || pSmp->nVibRate) && m_dwLastSavedWithVersion && m_dwLastSavedWithVersion < MAKE_VERSION_NUMERIC(1, 17, 03, 02)) + { + pSmp->nVibSweep = 255; // Let's correct this little stupid mistake in history. + } if(pis->samplepointer) lastSampleOffset = pis->samplepointer; // MPTX hack This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |