@ -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.
//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.
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)
# pragma region Audio Channel Loading (Count based on Audio::GetPrepareBGMLoopIterations)
for ( int i = 0 ; i < Audio : : GetPrepareBGMLoopIterations ( MAP_DATA [ GetCurrentLevel ( ) ] . bgmSongName ) ; i + + ) {
for ( int i = 0 ; i < Audio : : GetPrepareBGMLoopIterations ( MAP_DATA [ GetCurrentLevel ( ) ] . bgmSongName ) ; i + + ) {
LoadingScreen : : AddPhase ( [ & ] ( ) {
LoadingScreen : : AddPhase ( [ & ] ( ) {
@ -2502,6 +2501,7 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
Audio : : UpdateBGMVolume ( ) ;
Audio : : UpdateBGMVolume ( ) ;
return true ;
return true ;
} ) ;
} ) ;
}
LoadingScreen : : AddPhase ( [ & ] ( ) {
LoadingScreen : : AddPhase ( [ & ] ( ) {
STEAMUSERSTATS (
STEAMUSERSTATS (
@ -2510,7 +2510,6 @@ void AiL::_PrepareLevel(MapName map,MusicChange changeMusic){
ClearGarbage ( ) ;
ClearGarbage ( ) ;
return true ;
return true ;
} ) ;
} ) ;
}
}
}
bool AiL : : IsUpperForegroundTile ( int tileID ) {
bool AiL : : IsUpperForegroundTile ( int tileID ) {