Use Init() for all screens, so we can set state before the base class
members are loaded--they'll see resets, score finalization, etc. It also results in smaller code, due to a g++ bug that causes constructors to be emitted several times.
This commit is contained in:
@@ -52,7 +52,11 @@ ScreenTitleMenu::ScreenTitleMenu( CString sScreenName ) :
|
||||
|
||||
// TRICKY: Do this after GameState::Reset.
|
||||
LIGHTSMAN->SetLightsMode( LIGHTSMODE_JOINING );
|
||||
}
|
||||
|
||||
void ScreenTitleMenu::Init()
|
||||
{
|
||||
ScreenSelectMaster::Init();
|
||||
|
||||
m_sprLogo.Load( THEME->GetPathG(m_sName,GAMESTATE->GetCurrentGame()->m_szName) );
|
||||
m_sprLogo->SetName( "Logo" );
|
||||
|
||||
Reference in New Issue
Block a user