Have lead-in image appear even with a negative BGAnimation beat
3.9 would make lead-in images appear no matter what, and still maintained the proper sync demanded by having a negative beat. This PR just restores the behavior to what 3.9 did, since currently negative BGAnimation beats will disable lead-in images.
This commit is contained in:
+4
-9
@@ -633,15 +633,10 @@ void BackgroundImpl::LoadFromSong( const Song* pSong )
|
|||||||
|
|
||||||
Layer &mainlayer = m_Layer[0];
|
Layer &mainlayer = m_Layer[0];
|
||||||
|
|
||||||
/* If the first BGAnimation isn't negative, add a lead-in image showing
|
BackgroundChange change;
|
||||||
* the song background. */
|
change.m_def = m_StaticBackgroundDef;
|
||||||
if( mainlayer.m_aBGChanges.empty() || mainlayer.m_aBGChanges.front().m_fStartBeat >= 0 )
|
change.m_fStartBeat = -10000;
|
||||||
{
|
mainlayer.m_aBGChanges.insert( mainlayer.m_aBGChanges.begin(), change );
|
||||||
BackgroundChange change;
|
|
||||||
change.m_def = m_StaticBackgroundDef;
|
|
||||||
change.m_fStartBeat = -10000;
|
|
||||||
mainlayer.m_aBGChanges.insert( mainlayer.m_aBGChanges.begin(), change );
|
|
||||||
}
|
|
||||||
|
|
||||||
// If any BGChanges use the background image, load it.
|
// If any BGChanges use the background image, load it.
|
||||||
bool bStaticBackgroundUsed = false;
|
bool bStaticBackgroundUsed = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user