Minor improvements with KSF loader.

Cache version up to 196.
This commit is contained in:
Jason Felds
2011-07-20 00:18:14 -04:00
parent 3737b2eac6
commit f4f38ad12a
2 changed files with 11 additions and 3 deletions
+3 -2
View File
@@ -41,7 +41,7 @@
* @brief The internal version of the cache for StepMania.
*
* Increment this value to invalidate the current cache. */
const int FILE_CACHE_VERSION = 195;
const int FILE_CACHE_VERSION = 196;
/** @brief How long does a song sample last by default? */
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
@@ -866,7 +866,8 @@ void Song::ReCalculateRadarValuesAndLastSecond(bool fromCache, bool duringCache)
}
}
this->firstSecond = localFirst;
// Yes, for some reason we can have freaky stuff take place here.
this->firstSecond = (localFirst < localLast) ? localFirst : 0;
this->lastSecond = localLast;
}