Merge pull request #7825 from HiRavie/Grid

Allow finer editor grid
This commit is contained in:
Dennis Felsing 2024-01-17 23:28:30 +00:00 committed by GitHub
commit e1ea4a00c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,7 +63,11 @@ void CMapGrid::OnRender(CUIRect View)
int CMapGrid::GridLineDistance() const
{
if(Editor()->MapView()->Zoom()->GetValue() <= 100.0f)
if(Editor()->MapView()->Zoom()->GetValue() <= 10.0f)
return 4;
else if(Editor()->MapView()->Zoom()->GetValue() <= 50.0f)
return 8;
else if(Editor()->MapView()->Zoom()->GetValue() <= 100.0f)
return 16;
else if(Editor()->MapView()->Zoom()->GetValue() <= 250.0f)
return 32;