mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Limit zooming out further (fixes #2497)
This commit is contained in:
parent
a0e96d58ea
commit
4d34dd365b
|
@ -38,7 +38,7 @@ void CCamera::ScaleZoom(float Factor)
|
|||
|
||||
void CCamera::ChangeZoom(float Target)
|
||||
{
|
||||
if(Target >= 500.0f/ZoomStep)
|
||||
if(Target >= (Graphics()->IsBufferingEnabled()? 60 : 30))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue