m_HealthState is confusing; it's updated from other stats, and then the
original stats as well as m_HealthState are used for control logic. Simplify; remove AllAreFailing, and figure it out directly.
This commit is contained in:
@@ -1556,14 +1556,6 @@ bool GameState::AllAreInDangerOrWorse() const
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GameState::AllAreDead() const
|
||||
{
|
||||
FOREACH_EnabledPlayer( p )
|
||||
if( m_pPlayerState[p]->m_HealthState < PlayerState::DEAD )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool GameState::AllHumanHaveComboOf30OrMoreMisses() const
|
||||
{
|
||||
FOREACH_HumanPlayer( p )
|
||||
|
||||
Reference in New Issue
Block a user