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:
Kyzentun
2015-02-13 00:20:38 -07:00
parent 4c5aeaf4b8
commit 6cacfef71d
+2 -2
View File
@@ -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);