Further as-needed compression of jump graph.

This commit is contained in:
Bartosz Taudul
2022-10-19 21:33:20 +02:00
parent 11258fab73
commit e3eead78a8

View File

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