simplify inheritance
This commit is contained in:
@@ -327,11 +327,6 @@ ScreenGameplay::ScreenGameplay()
|
||||
}
|
||||
|
||||
void ScreenGameplay::Init()
|
||||
{
|
||||
Init( true );
|
||||
}
|
||||
|
||||
void ScreenGameplay::Init( bool bUseSongBackgroundAndForeground )
|
||||
{
|
||||
PLAYER_TYPE.Load( m_sName, "PlayerType" );
|
||||
GIVE_UP_START_TEXT.Load( m_sName, "GiveUpStartText" );
|
||||
@@ -345,7 +340,7 @@ void ScreenGameplay::Init( bool bUseSongBackgroundAndForeground )
|
||||
FAIL_AFTER_30_MISSES.Load( m_sName, "FailAfter30Misses" );
|
||||
ALLOW_CENTER_1_PLAYER.Load( m_sName, "AllowCenter1Player" );
|
||||
|
||||
if( bUseSongBackgroundAndForeground )
|
||||
if( UseSongBackgroundAndForeground() )
|
||||
{
|
||||
m_pSongBackground = new Background;
|
||||
m_pSongForeground = new Foreground;
|
||||
|
||||
Reference in New Issue
Block a user