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:
Glenn Maynard
2006-11-09 06:10:19 +00:00
parent 815f3d6dd5
commit 43b7c4ac7d
4 changed files with 13 additions and 14 deletions
-8
View File
@@ -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 )