if FAIL_OFF, don't set DANGER or DEAD. This means
GameState::AllAreInDangerOrWorse is always false in FAIL_OFF; if emptying the lifebar doesn't fail you, you're not in danger from it.
This commit is contained in:
@@ -1740,15 +1740,11 @@ Premium GameState::GetPremium() const
|
||||
|
||||
bool GameState::IsPlayerInDanger( const PlayerState *pPlayerState ) const
|
||||
{
|
||||
if( GetPlayerFailType(pPlayerState) == SongOptions::FAIL_OFF )
|
||||
return false;
|
||||
return pPlayerState->m_HealthState == PlayerState::DANGER;
|
||||
}
|
||||
|
||||
bool GameState::IsPlayerDead( const PlayerState *pPlayerState ) const
|
||||
{
|
||||
if( GetPlayerFailType(pPlayerState) == SongOptions::FAIL_OFF )
|
||||
return false;
|
||||
return pPlayerState->m_HealthState == PlayerState::DEAD;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user