Changed LifeMeterBattery to not subtract 1 from displayed life number, so the number will match the amount broadcast in the LifeChanged message.
This commit is contained in:
@@ -240,8 +240,8 @@ int LifeMeterBattery::GetRemainingLives() const
|
|||||||
}
|
}
|
||||||
void LifeMeterBattery::Refresh()
|
void LifeMeterBattery::Refresh()
|
||||||
{
|
{
|
||||||
m_textNumLives.SetText( ssprintf(LIVES_FORMAT.GetValue(), m_iLivesLeft-1) );
|
m_textNumLives.SetText( ssprintf(LIVES_FORMAT.GetValue(), m_iLivesLeft) );
|
||||||
if( m_iLivesLeft-1 < 0 )
|
if( m_iLivesLeft < 0 )
|
||||||
{
|
{
|
||||||
// hide text to avoid showing -1
|
// hide text to avoid showing -1
|
||||||
m_textNumLives.SetVisible(false);
|
m_textNumLives.SetVisible(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user