Song::TidyUpData needs to happen after edits in the song folder are loaded so that their radar stuff will be calculated. Bumped cache version.

This commit is contained in:
Kyzentun
2015-04-07 12:47:51 -06:00
parent 76a00574e1
commit 84b57e7ca4
+3 -3
View File
@@ -45,7 +45,7 @@
* @brief The internal version of the cache for StepMania.
*
* Increment this value to invalidate the current cache. */
const int FILE_CACHE_VERSION = 225;
const int FILE_CACHE_VERSION = 226;
/** @brief How long does a song sample last by default? */
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
@@ -344,12 +344,12 @@ bool Song::LoadFromSongDir( RString sDir, bool load_autosave )
this->m_sSongFileName = sDir + songName;
// Continue on with a blank Song so that people can make adjustments using the editor.
}
TidyUpData(false, true);
// If edits are not cached, looking for them causes a substantial hit to
// loading time. -Kyz
LoadEditsFromSongDir(sDir);
TidyUpData(false, true);
// Don't save a cache file if the autosave is being loaded, because the
// cache file would contain the autosave filename. -Kyz
if(!load_autosave)