mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-09 17:48:19 +00:00
parent
f049259dff
commit
13175e5322
|
@ -63,11 +63,7 @@ void CMapGrid::OnRender(CUIRect View)
|
||||||
|
|
||||||
int CMapGrid::GridLineDistance() const
|
int CMapGrid::GridLineDistance() const
|
||||||
{
|
{
|
||||||
if(Editor()->MapView()->Zoom()->GetValue() <= 10.0f)
|
if(Editor()->MapView()->Zoom()->GetValue() <= 100.0f)
|
||||||
return 4;
|
|
||||||
else if(Editor()->MapView()->Zoom()->GetValue() <= 50.0f)
|
|
||||||
return 8;
|
|
||||||
else if(Editor()->MapView()->Zoom()->GetValue() <= 100.0f)
|
|
||||||
return 16;
|
return 16;
|
||||||
else if(Editor()->MapView()->Zoom()->GetValue() <= 250.0f)
|
else if(Editor()->MapView()->Zoom()->GetValue() <= 250.0f)
|
||||||
return 32;
|
return 32;
|
||||||
|
|
Loading…
Reference in a new issue