Minor bug fixes

This commit is contained in:
Chris Danford
2002-07-23 19:02:47 +00:00
parent aaa4c41916
commit f202bbe680
2 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -152,10 +152,10 @@ void LifeMeterBar::Update( float fDeltaTime )
// set custom texture coords
CRect rectSize(
-METER_WIDTH/2,
-METER_HEIGHT/2,
-METER_WIDTH/2 + METER_WIDTH * m_fTrailingLifePercentage,
-METER_HEIGHT/2 + METER_HEIGHT );
int( -METER_WIDTH/2 ),
int( -METER_HEIGHT/2 ),
int( -METER_WIDTH/2 + METER_WIDTH * m_fTrailingLifePercentage ),
int( -METER_HEIGHT/2 + METER_HEIGHT) );
float fPrecentOffset = TIMER->GetTimeSinceStart();
fPrecentOffset -= (int)fPrecentOffset;