Condense jump arrows, depending on max depth of jump graph.

This commit is contained in:
Bartosz Taudul 2022-10-19 01:06:41 +02:00
parent 33e5e07629
commit 11258fab73
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -230,7 +230,11 @@ constexpr float JumpArrowBase = 9;
float SourceView::CalcJumpSeparation( float scale )
{
return round( JumpSeparationBase * scale );
float jsb = JumpSeparationBase;
if( m_maxJumpLevel > 45 ) jsb -= 3;
else if( m_maxJumpLevel > 30 ) jsb -= 2;
else if( m_maxJumpLevel > 15 ) jsb -= 1;
return round( jsb * scale );
}