Performance enhancement for Fracture().
This commit is contained in:
parent
1099befab1
commit
f8f1476f63
|
@ -651,10 +651,7 @@ struct FractureEdge
|
|||
|
||||
bool matches( int y ) const
|
||||
{
|
||||
int y_min = std::min( m_p1.y, m_p2.y );
|
||||
int y_max = std::max( m_p1.y, m_p2.y );
|
||||
|
||||
return ( y >= y_min ) && ( y <= y_max );
|
||||
return ( y >= m_p1.y || y >= m_p2.y ) && ( y <= m_p1.y || y <= m_p2.y );
|
||||
}
|
||||
|
||||
bool m_connected;
|
||||
|
|
Loading…
Reference in New Issue