simplify
This commit is contained in:
@@ -64,7 +64,7 @@ void LifeMeterBattery::Load( const PlayerState *pPlayerState, PlayerStageStats *
|
||||
|
||||
void LifeMeterBattery::OnSongEnded()
|
||||
{
|
||||
if( m_pPlayerStageStats->bFailedEarlier )
|
||||
if( m_pPlayerStageStats->bFailed || m_pPlayerStageStats->bFailedEarlier )
|
||||
return;
|
||||
|
||||
if( m_iLivesLeft < GAMESTATE->m_SongOptions.GetSong().m_iBatteryLives )
|
||||
|
||||
@@ -2449,11 +2449,8 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
|
||||
// give a little life back between stages
|
||||
FOREACH_EnabledPlayerInfo( m_vPlayerInfo, pi )
|
||||
{
|
||||
if( !pi->GetPlayerStageStats()->bFailed )
|
||||
{
|
||||
if( pi->m_pLifeMeter )
|
||||
pi->m_pLifeMeter->OnSongEnded();
|
||||
}
|
||||
if( pi->m_pLifeMeter )
|
||||
pi->m_pLifeMeter->OnSongEnded();
|
||||
}
|
||||
|
||||
GAMESTATE->m_bLoadingNextSong = true;
|
||||
|
||||
Reference in New Issue
Block a user