23e241a: if a BGCHANGE file can't be resolved, don't use the specified effect because it may require 2 files and all random BGs specify only 1 file [Chris Danford]
This commit is contained in:
+3
-1
@@ -563,7 +563,9 @@ void BackgroundImpl::LoadFromSong( const Song* pSong )
|
|||||||
if( i == BACKGROUND_LAYER_1 )
|
if( i == BACKGROUND_LAYER_1 )
|
||||||
{
|
{
|
||||||
// The background was not found. Try to use a random one instead.
|
// The background was not found. Try to use a random one instead.
|
||||||
bd = layer.CreateRandomBGA( pSong, bd.m_sEffect, m_RandomBGAnimations, this );
|
// Don't use the BackgroundDef's effect, because it may be an
|
||||||
|
// effect that requires 2 files, and random BGA will only supply one file
|
||||||
|
bd = layer.CreateRandomBGA( pSong, "", m_RandomBGAnimations, this );
|
||||||
if( bd.IsEmpty() )
|
if( bd.IsEmpty() )
|
||||||
bd = m_StaticBackgroundDef;
|
bd = m_StaticBackgroundDef;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user