speed up compiles slightly

This commit is contained in:
Glenn Maynard
2004-02-18 02:31:43 +00:00
parent 64c0d4664c
commit ae22b80bd5
4 changed files with 17 additions and 8 deletions
+9 -7
View File
@@ -89,12 +89,14 @@ const ScreenMessage SM_StopHereWeGo = ScreenMessage(SM_User+41);
ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen(sName)
{
LOG->Trace( "ScreenGameplay::ScreenGameplay()" );
m_bDemonstration = bDemonstration;
Init(); // work around horrible gcc bug 3187
}
void ScreenGameplay::Init()
{
int p;
m_bDemonstration = bDemonstration;
if( m_bDemonstration )
LIGHTSMAN->SetLightMode( LIGHTMODE_DEMONSTRATION );
else
@@ -297,7 +299,7 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen(sN
m_sprStaticBackground.SetZ( 2 ); // behind everything else
this->AddChild(&m_sprStaticBackground);
if( !bDemonstration ) // only load if we're going to use it
if( !m_bDemonstration ) // only load if we're going to use it
{
m_Toasty.Load( THEME->GetPathToB("ScreenGameplay toasty") );
this->AddChild( &m_Toasty );
@@ -612,7 +614,7 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen(sN
m_textAutoPlay.LoadFromFont( THEME->GetPathToF("ScreenGameplay autoplay") );
m_textAutoPlay.SetName( "AutoPlay" );
SET_XY( m_textAutoPlay );
if( !bDemonstration ) // only load if we're not in demonstration of jukebox
if( !m_bDemonstration ) // only load if we're not in demonstration of jukebox
this->AddChild( &m_textAutoPlay );
UpdateAutoPlayText();
@@ -636,7 +638,7 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen(sN
}
if( !bDemonstration ) // only load if we're going to use it
if( !m_bDemonstration ) // only load if we're going to use it
{
m_Ready.Load( THEME->GetPathToB("ScreenGameplay ready") );
this->AddChild( &m_Ready );
@@ -713,7 +715,7 @@ ScreenGameplay::ScreenGameplay( CString sName, bool bDemonstration ) : Screen(sN
this->SortByZ();
if( !bDemonstration ) // only load if we're going to use it
if( !m_bDemonstration ) // only load if we're going to use it
{
m_soundAssistTick.Load( THEME->GetPathToS("ScreenGameplay assist tick"), true );