simplify; don't accumulate m_iComboToRegainLife
This commit is contained in:
@@ -232,11 +232,7 @@ void LifeMeterBar::ChangeLife( float fDeltaLife )
|
|||||||
// do this after; only successive W5/miss will
|
// do this after; only successive W5/miss will
|
||||||
// increase the amount of life lost.
|
// increase the amount of life lost.
|
||||||
m_iMissCombo++;
|
m_iMissCombo++;
|
||||||
/* Increase by m_iRegenComboAfterMiss; never push it beyond m_iMaxRegenComboAfterMiss
|
m_iComboToRegainLife = PREFSMAN->m_iRegenComboAfterMiss;
|
||||||
* but don't reduce it if it's already past. */
|
|
||||||
int iNewComboToRegainLife = m_iComboToRegainLife + PREFSMAN->m_iRegenComboAfterMiss;
|
|
||||||
iNewComboToRegainLife = min( (int)PREFSMAN->m_iMaxRegenComboAfterMiss, iNewComboToRegainLife );
|
|
||||||
m_iComboToRegainLife = max( m_iComboToRegainLife, iNewComboToRegainLife );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we've already failed, there's no point in letting them fill up the bar again. */
|
/* If we've already failed, there's no point in letting them fill up the bar again. */
|
||||||
|
|||||||
Reference in New Issue
Block a user