@ -2467,7 +2467,7 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
return true ;
} ) ;
# pragma endregion
if ( changeMusic = = PLAY_LEVEL_MUSIC ) {
# pragma region Audio Preparation (Loading Phase 10)
LoadingScreen : : AddPhase ( [ & ] ( ) {
@ -2483,7 +2483,6 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
//Until the audio has stopped (by waiting for a set amount of time), we will respect the audio engine's wishes and not proceed.
LoadingScreen : : DeferLoad ( [ & ] ( ) { return audioEngine . playBGMWaitTime = = 0.f ; } ) ; //This is the wait time for the audio engine to finish.
# pragma region Audio Channel Loading (Count based on Audio::GetPrepareBGMLoopIterations)
for ( int i = 0 ; i < Audio : : GetPrepareBGMLoopIterations ( MAP_DATA [ GetCurrentLevel ( ) ] . bgmSongName ) ; i + + ) {
LoadingScreen : : AddPhase ( [ & ] ( ) {
@ -2502,15 +2501,15 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
Audio : : UpdateBGMVolume ( ) ;
return true ;
} ) ;
LoadingScreen : : AddPhase ( [ & ] ( ) {
STEAMUSERSTATS (
SteamUserStats ( ) - > StoreStats ( ) ;
)
ClearGarbage ( ) ;
return true ;
} ) ;
}
LoadingScreen : : AddPhase ( [ & ] ( ) {
STEAMUSERSTATS (
SteamUserStats ( ) - > StoreStats ( ) ;
)
ClearGarbage ( ) ;
return true ;
} ) ;
}
bool AiL : : IsUpperForegroundTile ( int tileID ) {