Fixed LifeMeterBar artifacts in MAX2 and EZ2. Fixed handling of "ez2-single-hard" NotesType.

This commit is contained in:
Chris Danford
2002-09-29 18:56:54 +00:00
parent 743db5bd82
commit 23971b9c42
3 changed files with 12 additions and 7 deletions
+4 -4
View File
@@ -112,19 +112,18 @@ public:
if( GAMESTATE->IsPlayerEnabled(m_PlayerNumber) )
{
DrawMask( m_fPercent );
DrawMask( m_fPercent ); // this is the "right endcap" to the life
const float fChamberWidthInPercent = 1.0f/g_iNumChambers;
float fPercentBetweenStrips = 1.0f/g_iNumStrips;
// round this so that the chamber overflows align
if( g_iNumChambers > 10 )
fPercentBetweenStrips = froundf( fPercentBetweenStrips, fChamberWidthInPercent );
float fPercentOffset = fmodf( GAMESTATE->m_fSongBeat/4+1000, fPercentBetweenStrips );
ASSERT( fPercentOffset >= 0 && fPercentOffset <= fPercentBetweenStrips );
for( float f=fPercentOffset+1; f>=fPercentOffset; f-=fPercentBetweenStrips )
for( float f=fPercentOffset+1; f>=0; f-=fPercentBetweenStrips )
{
DrawMask( f );
DrawStrip( f );
@@ -219,6 +218,7 @@ public:
m_quadMask.StretchTo( &rect );
m_quadMask.Draw();
}
};