fix floating tails in reverse boomerang
This commit is contained in:
@@ -494,11 +494,14 @@ void NoteDisplay::DrawHoldTopCap( const HoldNote& hn, const bool bIsBeingHeld, f
|
|||||||
|
|
||||||
bool bAllAreTransparent = true;
|
bool bAllAreTransparent = true;
|
||||||
bool bLast = false;
|
bool bLast = false;
|
||||||
for( float fY=fYCapTop; !bLast; fY+=fYStep )
|
// don't draw any part of the head that is after the middle of the tail
|
||||||
|
float fY = fYCapTop;
|
||||||
|
float fYStop = min(fYTail,fYCapBottom);
|
||||||
|
for( ; !bLast; fY+=fYStep )
|
||||||
{
|
{
|
||||||
if( fY >= fYCapBottom )
|
if( fY >= fYStop )
|
||||||
{
|
{
|
||||||
fY = fYCapBottom;
|
fY = fYStop;
|
||||||
bLast = true;
|
bLast = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -625,9 +628,9 @@ void NoteDisplay::DrawHoldBottomCap( const HoldNote& hn, const bool bIsBeingHeld
|
|||||||
if( bGlow )
|
if( bGlow )
|
||||||
fColorScale = 1;
|
fColorScale = 1;
|
||||||
|
|
||||||
// don't draw any part of the tail that is before the middle of the head
|
|
||||||
bool bAllAreTransparent = true;
|
bool bAllAreTransparent = true;
|
||||||
bool bLast = false;
|
bool bLast = false;
|
||||||
|
// don't draw any part of the tail that is before the middle of the head
|
||||||
float fY=max( fYCapTop, fYHead );
|
float fY=max( fYCapTop, fYHead );
|
||||||
for( ; !bLast; fY += fYStep )
|
for( ; !bLast; fY += fYStep )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user